Enhanced type guard syntax]

Fredrik Linder fredrik.linder@REDACTED
Thu Sep 18 16:34:53 CEST 2003


> > foo(A/integer, B/integer) ->
> >       A * B.
> >
> > {X/float, Y/float} = graph:coordinates(),
>
> This looks really really nice!

Actually, I've changed my mind... <:-) A little too fast there, I was. I
think it reduces readability, so I vote against. :-) I like the separation
the when-clause provides.

Cheers
/Fredrik




More information about the erlang-questions mailing list