[eeps] Proposal for /\ and \/ operators

Kenji Rikitake kenji.rikitake@REDACTED
Thu Feb 26 15:21:12 CET 2009


In the message <200902261506.42128.bekesa@REDACTED>
dated Thu, Feb 26, 2009 at 03:06:18PM +0100,
Andras Georgy Bekes <bekesa@REDACTED> writes:
> > >   I am, however, a bit weary of proposals to add all kinds of bells
> > >   and whistles. It all adds up, and there's really quite enough
> > > bloat already.
> I think some max and min function is beneficial, but please don't 
> introduce new operators or other magic.

+1.

Many C programmers like me will think \/ as an escaped version of /.
And in many places including Japan \ is not a backslash; it's a JPY
mark.  While Erlang uses ISO-8859-1 as the default code (and in some
part Unicode), introducing ASCII backslash is confusing.

> Just make new standard functions max/2 and min/2. If they cause really 
> big problem with legacy code containing max or min functions or atoms, 
> then put it into the erlang module (i.e. mandatory erlang: prefix).
> 
> If efficiency is really needed, make it a BIF.
> 
> Even the simplest solution ( min and max _functions_ in the erlang 
> module) would solve 90% of the current problem (the need to implement 
> some min or max function in every second module).

Also +1.

> 	Georgy

Kenji Rikitake



More information about the eeps mailing list