Re: Re: Type hints revisited [IllegalArgumentException instead of E_ERROR]

From: Date: Mon, 31 Mar 2003 11:57:44 +0000
Subject: Re: Re: Type hints revisited [IllegalArgumentException instead of E_ERROR]
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-531@lists.php.net to get a copy of this message
Type hinting, if it causes a bail-out, renders the scripts non-portable to (the growing number of) applications that intend to stick around for longer than a short web-request. So yes, I'd be happier without anyone having type hints than having type hints E_ERROR. (which is inconsistent with all of the other parameter checking macros and functions already in use in PHP). --Wez. On Sun, 30 Mar 2003, Stanislav Malyshev wrote: > DR>> > Just to be clear: I'd be happier without type hinting then type hinting > DR>> > throwing an E_ERROR (a E_WARNING would also make me happy). > DR>> > DR>> I agree 100% here. > > If so, what on the Earth prevents you from not using type hinting and > being happy? Or you want to say you would be better without _others_ using > type hinting than _others_ using it with E_ERROR? That's one strange point > of view then :)

« previous php.internals (#531) next »