std.d.lexer requirements

Walter Bright newshound2 at digitalmars.com
Tue Aug 7 02:54:42 PDT 2012


On 8/7/2012 1:14 AM, Jonathan M Davis wrote:
> But you can also configure the lexer to return an error token instead of using
> the delegate if that's what you prefer. But Walter is right in that if you
> have to check every token for whether it's an error, that will incur overhead.
> So, depending on your use case, that could be unacceptable.

It's not just overhead - it's just plain ugly to constantly check for error 
tokens. It's also tedious and error prone to insert those checks.

I don't see any advantage to it.




More information about the Digitalmars-d mailing list