std.d.lexer : voting thread

Jakob Ovrum jakobovrum at gmail.com
Mon Oct 7 21:21:48 PDT 2013


On Tuesday, 8 October 2013 at 00:16:45 UTC, Andrei Alexandrescu 
wrote:
> http://dpaste.dzfl.pl/d07dd46d

I have to say, that `generateCases` function is rather 
disgusting. I'm really worried about the trend of using string 
mixins when not necessary, for no apparent gain. Surely you could 
have used static foreach to generate those cases instead, 
allowing code that is actually readable. It would probably have 
much better compile-time performance as well, but that's just 
speculation.


More information about the Digitalmars-d mailing list