Re: Re: Flexible type hinting

From: Date: Thu, 02 Jul 2009 18:12:25 +0000
Subject: Re: Re: Flexible type hinting
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-44668@lists.php.net to get a copy of this message
Hi!
    function func(int $i)
for strict type checking, and
    function func((int)$i)
Without saying anything on the merits of having both syntaxes, visually I think this looks much nicer, even with the disadvantage of parentheses overload. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#44668) next »