[erlang-questions] Why can't you have a variable before a string with pattern matching?
Thu May 31 22:22:10 CEST 2007
P.S. Another way to think of it is, "x"++Tail is syntactic sugar for
[$x|Tail]. But Head++"y" is not expressible with the [ | ] syntax;
we'd need to add ++ as new semantics.
More information about the erlang-questions