[erlang-questions] erlang sucks
Wed Mar 12 09:20:11 CET 2008
Ulf Wiger (TN/EAB) wrote:
> Robert Virding skrev:
>> But the resulting 'if' would definitely be more useful.
> The 'if' statement is not high on my list of things that need
> improving. It's actually quite ok, except it could perhaps have
> been named differently, in order not to give people false
just to be clear; i don't think 'if ' should be improved.
and i realize it cannot be removed either :<
what i proposed was that it'd be obsoleted. in practice that would
mean that there'd
be a prominent document named "Obsolete features" or somesuch. That
document would list
old cruft; such as
* the three different 'and' (*)
* the old type guards (integer() vs. is_integer())
* tuple funs
(case x of x when true,false ->ok; _-> nok end.
case x of x when true and false ->ok; _-> nok end.
case x of x when true andalso false ->ok; _-> nok end.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 179 bytes
Desc: not available
More information about the erlang-questions