Thoughts on function names containing arbitrary symbols
Walter Bright
newshound2 at digitalmars.com
Wed Oct 5 00:54:16 PDT 2011
On 10/4/2011 2:46 AM, Jacob Carlborg wrote:
> What are the thoughts around here on function names containing arbitrary
> symbols, like in Scala. Example:
>
> void ::: (int a) {}
This, in effect, means "user defined tokens". The lexing pass will then become
intertwined with semantic analysis. While possible, this will make the compiler
slow, buggy, impossible to run the passes concurrently, hard to write 3rd party
parsing tools, etc.
More information about the Digitalmars-d
mailing list