Comment

Comment by cheez

auto, the new range for and lambdas are my most used C++11 features. Also make_shared/make_unique.

  auto ptr = make_shared<T>() 
Reads very nicely so I agree that if the type should be somewhere in the auto expression. That is, use auto to remove redundancy. I just wish they would have extended type deduction to lambda arguments so I could do:

  [](a,b){ ... }
Instead of:

  [](int a, int b) {...}
My understanding is that they're allowing:

  [](auto a, auto b) {...}
Bleh.
parent cheez 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton