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

You're too familiar with C-style languages. When I initially picked up Scala the : type syntax felt a bit strange, but I really came to like it and am happy when it's in other languages.

Putting the type after the name feels more natural, and the : also translated nicely into 'of type' (or if you prefer for functions 'returns type').



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

Search: