Re: Re: Type hinting/casting request for vote

From: Date: Tue, 07 Jul 2009 15:35:06 +0000
Subject: Re: Re: Type hinting/casting request for vote
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-44774@lists.php.net to get a copy of this message
On Tue, Jul 7, 2009 at 3:53 PM, Greg Beaver<greg@chiaraquartet.net> wrote: > 2) have 1 syntax, T_*_CAST as in function ((int) $a) {} and have that > mean strict type hinting. I dont think this is a good option. Having features dictated by trying to keep the lexer/parser clean is a bad idea. If the lexer cannot be fixed, I think the better option is to ruin things for people calling things Bool, rather than compromising the feature. (I am assuming that people are still able to call things \mynamespace\bool -- if not, that changes things). Thanks, Paul -- Paul Biggar paul.biggar@gmail.com

« previous php.internals (#44774) next »