[erlang-questions] "Symmetrical" function

Richard O'Keefe ok@REDACTED
Wed Feb 18 00:07:22 CET 2009


On 17 Feb 2009, at 9:01 pm, Michael Radford wrote:
> P.S. Wouldn't it be nice if regular matches had the same syntax, e.g.,
> 	X (when X < 3) = f(X)
> I think "(when" is never currently legal, so it's even unambiguous.

There has already been a proposal to allow

	(X when X < 3) = f(X)

Abstract patterns would subsume this.
>



More information about the erlang-questions mailing list