[eeps] Proposal for /\ and \/ operators
Thu Feb 26 16:38:45 CET 2009
On Wed, Feb 25, 2009 at 5:45 PM, Richard O'Keefe <> wrote:
> I'm sick of writing my own max and min functions.
> Aren't you?
No, I am not.
I have to assume that this EEP is some sort of sick joke.
I am sure that the reason that there are so many min/max functions
is that they are so trivial to write that nobody bothers to check if they
already exists in some library.
And if You don't want to write another one there is lists:min/max.
Really, what is the problem with using those?
And if Your code really depends on being able to do min/max with one
machine instruction You really shouldn't be using erlang for those
Also, I would think that, in the general case the cost of comparing two terms
is greater than the overhead of using lists:min/max.
I suspect that the OTP guys have more important thing to do than optimizing
So, I am against this one.
> eeps mailing list
More information about the eeps