Re: Type hinting - Request for Discussion

From: Date: Tue, 21 Jul 2009 16:30:49 +0000
Subject: Re: Type hinting - Request for Discussion
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-45058@lists.php.net to get a copy of this message
On Tue, July 21, 2009 11:22 am, Christian Schneider wrote: > Richard Lynch wrote: >> I think anybody who is coding with strict/weak/contract >> type-enforcement/casting is going to understand >> try/catch/Exceptions... > > I'm not going to start an pro/contra Exceptions rant but *please* keep > Exceptions out of the core language itself, that's a line we should > not > cross IMHO... > > This posting is mainly for the record (currently there is an agreement > to not use Exceptions inside the core and I'm in favour of this) and > anyone who wants to discuss Exceptions with me should do it off list, > I > will not discuss this here ;-) I apologize. Elsewhere it was stated that they were to be kept to a "minimum". If they are out entirely, by all means, keep it that way. I am not a fan of Exceptions myself. Integrating with a badly-written exception-based library is even worse than integrating with a badly-written error-messaging library. If the library is well-written, either works equally well. :-) -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch

« previous php.internals (#45058) next »