News for hackers. Stuff that matters.
Re:Why the C++ standard ships every three years by Thorrez on Saturday July 13, 2019 @06:29PM (#20430539)
Plenty of other languages including a large percent of recent languages have the return type on the right.

Haskell, Visual Basic, Scala, F#, Go, (Rust), Kotlin, TypeScript, Swift.

Even c++ allows you to put return types on the right. Why? Because putting the types on the right allows return type deduction. I think it's better to have a single syntax (all types on the right) rather than 2 syntaxes like c++ has.

https://medium.com/@elizarov/types-are-moving-to-the-right-2...

There are no comments on this comment yet.