Still no fixed template syntax
Posted Mar 29, 2013 15:49 UTC (Fri) by
tjc (subscriber, #137)
In reply to:
Still no fixed template syntax by HelloWorld
Parent article:
A look at C++14, part 1
A major pain point in C++ template programming is the ambiguity between the less-than operator and the opening angle bracket for template parameters.
I agree. Having a language design gaffe like this at the lexical level really makes it a nuisance.
I don't really like source code that requires characters outside the 32-127 range, but if I did, I think my vote would be to use double guillemets, since they visually stand apart from LT and GT.
template «typename T»
I can't say that they're especially pretty.
(
Log in to post comments)