Re: [VOTE] Scalar Type Hints

From: Date: Mon, 09 Feb 2015 13:51:50 +0000
Subject: Re: [VOTE] Scalar Type Hints
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-82281@lists.php.net to get a copy of this message
Am 07.02.2015 um 02:08 schrieb Sebastian Bergmann: > After reading your email, Nikita, I deleted my vote (it was no before). > I will review the RFC again, with your arguments (and others) in mind > and maybe I'll come to a different conclusion. I have voted (no) again. I still think that if we add support for scalars in type declarations then the corresponding check must be strict. But since that strictness does not align with the spirit of PHP I much rather have no support for scalars than one that is not strict. Maybe built-in classes such as String, Integer, Float, Boolean that know how convert themselves to the corresponding scalar type are a viable approach that is worth exploring.

« previous php.internals (#82281) next »