Hacker News new | ask | show | jobs
by gumby 1021 days ago
Trailing return type declaration (-> type) was needed to declare the return tyoe of a lambda — no other way to get that info into the grammar.

Then once that was opened some folks felt it would be better to write their regular code that way too.