[eeps] EEP XXX: Pattern-test operator

Michael Truog <>
Fri Apr 13 02:54:42 CEST 2012


Your idea is interesting.  However, doesn't it ruin the simplicity of guards?  It seems as if this proposal would make guards generate side-effects which should impact both testability and optimization opportunities.  Isn't this a concern?

On 04/12/2012 04:51 PM, Erik Søe Sørensen wrote:
> Hello all -
>
> Attached is a proposal to add to the Erlang language an operator which allows for pattern matching to be used in new contexts, in particular within guard expressions.
>
> I hope the writeup to be in the expected format, as well as describing a sufficiently interesting idea.
>
> Regards,
> Erik Søe Sørensen
>
>
> _______________________________________________
> eeps mailing list
> 
> http://erlang.org/mailman/listinfo/eeps

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/eeps/attachments/20120412/c813f87e/attachment-0001.html>


More information about the eeps mailing list