LWN.net Logo

Still no fixed template syntax

Still no fixed template syntax

Posted Apr 2, 2013 8:53 UTC (Tue) by jezuch (subscriber, #52988)
In reply to: Still no fixed template syntax by HelloWorld
Parent article: A look at C++14, part 1

Interestingly, early high-level programming languages separated the keyword and identifier namespaces by using e.g. bold or underline for keywords. This way the parser did not get a heart attack if you named your variable "if". (Some later languages dropped the inconvenience of special character attributes and made the keywords all-uppercase. And later still there was C.)

So, another way to fix the '<' ambiguity would be to make the template-initiating angle bracket bold ;)


(Log in to post comments)

Still no fixed template syntax

Posted Apr 4, 2013 13:48 UTC (Thu) by dgm (subscriber, #49227) [Link]

That's a bold proposal. Yes it is.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds