[erlang-questions] Why can't you have a variable before a string with pattern matching?

Jordan Wilberding diginux@REDACTED
Fri Jun 1 00:58:14 CEST 2007


Darius Bacon wrote:
>
> Anyway, trying to make ++
> fully general in patterns would open up possibilities like
> fcn(A ++ "x" ++ B).
>
> Darius
> _______________________________________________
>   
That is actually what I was hoping to do. I guess it probably just isn't
a good hope to have though in regards to efficiency. But it would make
some code look nicer.

Thanks!
Jordan Wilberding



More information about the erlang-questions mailing list