[erlang-questions] Which EEP would you pick as the most important one to implement next?
Jesper Louis Andersen
jesper.louis.andersen@REDACTED
Fri Aug 31 11:56:22 CEST 2012
I'd definitely like EEP 16, the is_between/3 function (and usable in guards) I'd also like a clamp(X, Lo, Hi) with implementation:
clamp(X, Lo, Hi) ->
min(max(X, Lo), Hi).
(Brace for mistakes - I might have gotten it wrong). The idea is to provide a limit on X. X will never go below Lo and will never go beyond Hi. It turns out that my code is using this quite a lot, and often in inner loops, so getting a fast variant could be useful.
Jesper Louis Andersen
Erlang Solutions Ltd., Copenhagen
On Aug 31, 2012, at 11:30 AM, Loïc Hoguin <essen@REDACTED> wrote:
> On 08/31/2012 11:18 AM, Michael Turner wrote:
>> Since it seems to A Time for Big Questions on this mailing list.
>
> Sounds useful: http://www.erlang.org/eeps/eep-0035.html
>
> --
> Loïc Hoguin
> Erlang Cowboy
> Nine Nines
> http://ninenines.eu
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list