[erlang-questions] Intel Quad CPUs

Thomas Lindgren <>
Mon Sep 10 14:08:19 CEST 2007


--- ok <> wrote:
> >   - some names could have different meaning
> depending on whether they
> >     were used as guard tests or as normal
> expressions - float(X) is
> >     a boolean test for float-ness if it's a guard,
> but if it's a
> >     normal expression then it refers to the
> int-to-float conversion
> >     function
> 
> That is the only persuasive argument I've ever
> heard, and in
> light of the other semantic differences, it would
> have been better
> to rename the convert-to-float function to
> as_float/1.

For what it's worth, that's my conclusion too.

(Guards and booleans are a bit of a mess anyway, with
three somewhat different and/or operations, two sets
of guards, and so on. The joy of backwards
compatibility, I guess ...)

(And when the dust has settled, we still didn't get
general guards ... Yes, yes, I know. The language
designers like guards just the way they are.)

Best,
Thomas



      ____________________________________________________________________________________
Shape Yahoo! in your own image.  Join our Network Research Panel today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 





More information about the erlang-questions mailing list