Hacker News new | past | comments | ask | show | jobs | submit login

herb has a talk where he describes its rationale.

it is known as sticky syntax in relation to auto (but specifically when the type on the rhs is explicitly declared and not abstracted away with a function signature)

it removes narrowing, inference, while keeping benefits of auto related to inits etc.

it's a way of telling the compiler we want this type moving forward and adheres to the convention of right-to-left reading w.r.t. resource allocation semantics C++ programmers are often accustomed to.




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

Search: