[erlang-questions] erlang sucks

Mats Cronqvist mats.cronqvist@REDACTED
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
> expectations.

  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
* 'if'
* the three different 'and' (*)
* split_binary()
* 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...
Name: mats_cronqvist.vcf
Type: text/x-vcard
Size: 179 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080312/6b0e81be/attachment.vcf>

More information about the erlang-questions mailing list