Linked Questions

76 votes
9 answers
17k views

Interpretation of Truthy/Falsey

Quite a few code-golf questions require output to be "truthy or falsey". This is possibly confusing as these terms can possibly mean different things to different people, and especially in different ...
Digital Trauma's user avatar
33 votes
6 answers
3k views

Can numeric input/output be in unary?

Some string-based languages (including but not limited to sed, Retina, ///) can't really handle integer arithmetic in decimal (or other normal bases). Therefore, these almost always have to start by ...
Martin Ender's user avatar
21 votes
5 answers
1k views

What's a string?

If a challenge says that input will be in the form of a string, what is acceptable? Various languages have different ways of implementing strings, so here's what I've "borrowed" from Wikipedia: ...
Geobits's user avatar
  • 19.7k
25 votes
3 answers
1k views

Should Booleans be allowed where a number is required?

This is a rather common inquiry in contests that require computing elements of a sequence. For example, consider the following recursive implementation of the factorial function (Python): ...
Dennis's user avatar
  • 209k
14 votes
3 answers
655 views

What outputs should I allow for decision problems? [duplicate]

I'm looking for opinions on what outputs to allow as the Yes and No outputs on decision-problem challenges. The goal isn't to make a policy, but to help with a decision I often have to make when ...
xnor's user avatar
  • 144k
16 votes
3 answers
632 views

Is the empty string an acceptable decimal representation of 0?

In a recent question for which the correct output for 1 is zero, an answer output ; i.e, nothing. Is this an acceptable base-10 ...
lirtosiast's user avatar
  • 21.4k
17 votes
2 answers
1k views

Can numeric input/output be in the form of byte values?

This answer just prompted a question, which I've wondered about a few times when answering challenges in esoteric languages: For some esoteric languages, the only means of input/output is reading and ...
Martin Ender's user avatar
7 votes
2 answers
284 views

Can you mix an Esolang with HTML?

I've seen tons of Javascript + HTML answers, however... I was wondering if it's okay to compete in a graphical-output challenge such as: Use 16 colors while writing Hey! 4 times Using an 05AB1E ...
Magic Octopus Urn's user avatar
15 votes
3 answers
594 views

What is a list?

The PPCG community seems to be moving towards more general I/O formats. Then, we could generalize our notion of a "list" so that it is not restricted to the built-in list or array constructs. For ...
JungHwan Min's user avatar
  • 13.8k
11 votes
1 answer
594 views

Empty string as a truthy value

I will mainly speak about the programming language Lua, because that's where this question comes from. In Lua, everything but nil and ...
Katenkyo's user avatar
  • 3,065
5 votes
3 answers
173 views

Accepting numeric inputs in mixed decimal and unary bases

There seems to be agreement that numeric input is by default accepted in either decimal or unary bases. The linked meta-question doesn't address the issue of whether separate inputs of the same ...
Luis Mendo's user avatar
  • 104k
12 votes
1 answer
179 views

Are transformed versions of Java's types acceptable as function input?

In Java, all "basic" input types are immutable with very few tools at our disposal. Some other class that still represent the same value exist and allow us to do more. In trying to golf Java code, I ...
Olivier Grégoire's user avatar
1 vote
0 answers
73 views

Can a language's True/False be used in place of their values in a sequence? [duplicate]

I'm asking this to find a consensus on whether it's okay for an answer to use True or False in place of the language's ...
mbomb007's user avatar
  • 23.3k