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

> function add( ... ): float {}

Which if you read it out, it sounds entirely natural "This is a function called foo, which takes some params, and returns a float". Most of the other variants don't read as naturally.

> Since that's how it's done in other languages and people would feel at home with it.

PHP doesn't need to copy the mistakes of other languages. It's got plenty of its own mistakes.



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

Search: