On Wednesday, 29 March 2017 at 11:16:28 UTC, deadalnix wrote:
I was wondering. When uniitests aren't going to run, it may be
desirable to skip parsing altogether, just lexing and counting
braces until the matching closing brace is found.
Obviously, this means that no error will be found in unittests
blocks. That can contain pretty much anything that lex, so it's
even more lax than what's allowed inside a static if.
Is that an acceptable tradeof ?
I would not do this trade off,
It's highly surprising since no other language feature works that
way.
Also parsing is rather cheap.