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

  [](auto &&a, auto &&b) { return a.id() < b.id(); };
I vary much prefer the version above than the one author proposes for replacement. C++ is a beast as it is. No reason to introduce more miracles there. My opinion of course


I dunno, it's kinda consistent. Braces are optional for single expression bodied if statements too. It doesn't really seem all that strange for them to be optional for single expression lambdas.




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

Search: