20

Even in Erlang, the truth is always better than a lie.

Comments
  • 7
    I think its because booleans boil down to 1 and 0 after compilation.

    Where
    True = 1
    False = 0

    Therefore the logic (True > False) represents (1 > 0), rather than the actual meaning of (True > False)

    I may be wrong...
  • 0
    This is so fake deep that I CAN'T stand looking at it. When you ask a bool question of 1>0 ofc it will say true, it's not returning the higher value, it's returning a bool output.
    Fucking damnit
  • 1
    I know this may seem weird to most programmers not familiar with Erlang. In Erlang, "true" and "false" are called atoms and do not hold any value, not even an integer like 1 or 0.

    Also, the rule for the comparison operator is: number < atom < ...

    More here for the curious: http://learnyousomeerlang.com/start...
  • 0
    @rohitjha thats not unfamiliar
    almost all langzages have symbols/atoms (clisp, scheme, prolog, ...)
Add Comment