Re: [PHP-DEV] Re: I quit.

2015-02-16 Thread Sven Drieling
Am Mon, 16 Feb 2015 18:00:41 +0200 schrieb Arvids Godjuks : Hallo, > Right now we need a breakthrough event - get type hints into the language > at all. The most sensible thing to do it is to add basic type hints that > work like the current conversion rules, maybe add some notices/warnings for >

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

2015-02-03 Thread Sven Drieling
Am Mon, 02 Feb 2015 23:38:21 +0100 schrieb Christoph Becker : Hallo, > >> addVat(-1); > > Well, my point was that even a strict type system doesn't necessarilly > catch all erroneous/undesired arguments. Even if addVat() properly > handles negative numbers, and maybe even zeroes, there are fun

Re: [PHP-DEV] [RFC] Scalar Type Hints

2015-01-02 Thread Sven Drieling
Am Thu, 1 Jan 2015 14:41:06 +0200 schrieb Zeev Suraski : Hallo, > † Numeric strings with trailing characters and non-numeric strings are > accepted, but produce a notice. Why Scalar Type Hints? What is the goal? - Hints for IDEs - autocompletion? - Find bugs with static program analysis? - Find

Re: [PHP-DEV] Re: Why does $_REQUEST exist?

2009-05-15 Thread Sven Drieling
Am Freitag, 15. Mai 2009 schrieb Michael Shadle: Hallo, > There's gotta be a time in the natural evolution to "cut the cord" so > to speak - Python just launched 3.0 and dropped backwards > compatibility. Why can't PHP do the same in 6.0? :) (Or 5.3 for all I > care. But it really should align wi

Re: [PHP-DEV] Type hinting misunderstood

2008-01-06 Thread Sven Drieling
Am Sonntag, 6. Januar 2008 12:28 schrieb Alain Williams: Hello, > You are confusing the TYPE and the VALUE. > > What type hinting means is: > > * is the TYPE correct ? If so succeed. > > * can the VALUE be 100% converted to the desired TYPE (eg '5' to int) ? > If so succeed. > > * fail \n"; // =