Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I vaguely remember C++ template crocodiles being white space sensitive some time ago when templates were nested at variable declaration.


Yes, the lexer considered >> as a single token, so you had to you write > >. The standard was changed in c++11 to allow the syntax; that definitely complicated parsing, but at least now heavily templated code looks a 100% less ugly.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: