php-scalar icon indicating copy to clipboard operation
php-scalar copied to clipboard

This is what I need from PHP

Open alejo54dev opened this issue 10 years ago • 4 comments

Something simple and very important for the future of the PHP language. This feature is necessary for years. You should make noise in the RFC. good job!.

alejo54dev avatar May 29 '14 20:05 alejo54dev

+1 indeed, scalar type hinting is missing in PHP for many years!

c9s avatar Jan 21 '15 03:01 c9s

A pity ... simple things like this are forcing developers to choose x other languages.

alejo54dev avatar Jan 21 '15 13:01 alejo54dev

I've reviewed the RFC that has been proposed 2 years ago, I don't know why Zend PHP team just don't choose any simple approach and want to provide a type hinting with type conversion.. the type conversion should be specified explicitly from the caller, not the callee.

c9s avatar Jan 22 '15 09:01 c9s

Completely agree with you.

alejo54dev avatar Jan 22 '15 15:01 alejo54dev