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 corresponding integer values -- as output in a sequence, for example.
So if the challenge is to output the Fibonacci sequence forever, and your output is
False, True, True, 2, 3, 5, 8, ...
and False==0
and True==1
in the language, then this would be acceptable. This is the case for Python. Some languages use -1
for True
, so whatever the language uses for the Boolean value is the value that it may be substituted for.
So what do you think? I think it makes sense to allow it. I know there are already answers doing this, but I don't remember where.