Re: Type hinting

From: Date: Mon, 24 May 2010 15:50:02 +0000
Subject: Re: Type hinting
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-48434@lists.php.net to get a copy of this message
At 18:39 24/05/2010, Daniel Convissor wrote:
On a side note, I hope the hinting will allow the ability to do something something like "int|null" for graceful handling of optional parameters.
There was an idea to allow null if you use 'int foo = null' - but only that particular use case (e.g., no support for the equivalent of string|int). Zeev

« previous php.internals (#48434) next »