[erlang-questions] Erlang 3000?
Vance Shipley
vances@REDACTED
Mon Nov 17 12:17:15 CET 2008
On Mon, Nov 17, 2008 at 09:20:39AM +0100, Bengt Kleberg wrote:
} Perhaps somebody would care to post another example
The if expression is well suited to handling boolean expressions:
if
HaveMoney and Hungry ->
buy_food();
HaveMoney and not Hungry ->
buy_beer();
not HaveMoney ->
work()
end
It just reads better.
As far as a new Erlang goes I'd mostly want the libraries modernized.
Now that we have try ... catch ... end it would be nice if we didn't
have to code for {ok, value} | {error, Reason} any longer.
-Vance
More information about the erlang-questions
mailing list