Comment

Comment by Danack

> 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.

parent Danack 11 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton