Fri Aug 4 18:04:46 CEST 2006
in my quixotic crusade against the use of macros, i've come up against this
?TRUE -> ...
?FALSE -> ...
as far as i can tell it's to get the compiler to catch typos like "flase" for
so perhaps a language addition like this would be useful.
#BOOL.true -> ...;
#BOOL.false -> ...
#BOOL.X -> ...;
X -> exit(bad_message)
the choice of "#" is probably dumb. the "#BOOL.true" would of course be
transformed to 'true' by the compiler.
Premature optimization is the root of all evil in programming.
C. A. R. Hoare
More information about the erlang-questions