[eeps] : Proposal for /\ and \/ operators

Richard Carlsson richardc@REDACTED
Thu Feb 26 17:10:08 CET 2009


Hakan Mattsson wrote:
> Why does it not suffice to make the implementation of lists:min/1 and
> lists:max/1 more efficient as Richard C suggested?

In addition to that, as some have suggested, we could have new functions
erlang:min/2 and erlang:max/2 (not auto-imported, so no BC problem). To
use the shorter names, you'd only need to write -import(erlang, [min/2,
max/2]).

Since guards use slightly different rules for name resolution, it would
be possible to also add min/2 and max/2 to the set of guard BIFs.

    /Richard



More information about the eeps mailing list