Re: [RFC] Scalar Type Hinting With Casts (re-opening)

From: Date: Wed, 16 Jul 2014 12:24:13 +0000
Subject: Re: [RFC] Scalar Type Hinting With Casts (re-opening)
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to internals+get-75588@lists.php.net to get a copy of this message
Andrey Andreev wrote (on 16/07/2014):
I understand that this RFC is about type cast hints and that's fine with me.
It is and it isn't. It's about a hybrid approach which deliberately mixes casting and validation. Having the mixture alongside pure casts or pure validation is less attractive than having the two "pure" forms side by side, but the mixture provides something which can't easily be emulated by either of the "pure" forms. Therein lies the problem.

« previous php.internals (#75588) next »