AW: [PHP-DEV] What do we need strict scalar type hints for?

2015-02-04 Thread Robert Stoll
-Ursprüngliche Nachricht- Von: Dmitry Stogov [mailto:dmi...@zend.com] Gesendet: Mittwoch, 4. Februar 2015 10:26 An: Sebastian Bergmann Cc: PHP Internals Betreff: Re: [PHP-DEV] What do we need strict scalar type hints for? hi Sebastian, Do you like the proposal with declare()

AW: [PHP-DEV] What do we need strict scalar type hints for?

2015-02-02 Thread Robert Stoll
-Ursprüngliche Nachricht- Von: Dmitry Stogov [mailto:dmi...@zend.com] Gesendet: Montag, 2. Februar 2015 20:14 An: Robert Stoll Cc: PHP Internals; Andrea Faulds; Nikita Popov Betreff: Re: [PHP-DEV] What do we need strict scalar type hints for? On Mon, Feb 2, 2015 at 9:41 PM, Robert

Re: AW: [PHP-DEV] What do we need strict scalar type hints for?

2015-02-02 Thread Dmitry Stogov
On Feb 2, 2015 11:02 PM, Robert Stoll p...@tutteli.ch wrote: -Ursprüngliche Nachricht- Von: Dmitry Stogov [mailto:dmi...@zend.com] Gesendet: Montag, 2. Februar 2015 20:14 An: Robert Stoll Cc: PHP Internals; Andrea Faulds; Nikita Popov Betreff: Re: [PHP-DEV] What do we need

Re: AW: [PHP-DEV] What do we need strict scalar type hints for?

2015-02-02 Thread Lester Caine
On 02/02/15 20:15, Robert Stoll wrote: Nobody would stop you from implementing a utility class Money or likewise and providing a better error message instead of using int if PHP would be strict only (what is not proposed in the RFC anyway). You could also just omit the type hint, it is

AW: [PHP-DEV] What do we need strict scalar type hints for?

2015-02-02 Thread Robert Stoll
Hi Dimitry, -Ursprüngliche Nachricht- Von: Dmitry Stogov [mailto:dmi...@zend.com] Gesendet: Montag, 2. Februar 2015 10:13 An: PHP Internals; Andrea Faulds; Nikita Popov Betreff: [PHP-DEV] What do we need strict scalar type hints for? hi, could you please write down few use

AW: [PHP-DEV] What do we need strict scalar type hints for?

2015-02-02 Thread Robert Stoll
-Ursprüngliche Nachricht- Von: Lester Caine [mailto:les...@lsces.co.uk] Gesendet: Montag, 2. Februar 2015 21:06 An: internals@lists.php.net Betreff: Re: [PHP-DEV] What do we need strict scalar type hints for? On 02/02/15 09:12, Dmitry Stogov wrote: could you please write down