Re: [RFC] Scalar Type Hinting With Casts (re-opening)
| From: | Pierre Joye | Date: | Thu, 24 Jul 2014 08:46:56 +0000 |
| Subject: | Re: [RFC] Scalar Type Hinting With Casts (re-opening) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75996@lists.php.net to get a copy of this message | ||
On Jul 24, 2014 10:34 AM, "Patrick Schaaf" <php@bof.de> wrote:
>
> > The argument saying that it is not the PHP way is somehow incorrect
>
> > here, given that we already do that for classe. The type jungling
>
> > makes sense in implementations, as it always was but argument passing
>
> > and validation have been a source of pain since very long. I could
>
> > imagine one exception with the "numeric" type, which could accept
>
> > anything and got converted to integer/numeric values, like "1235ab" or
>
> > other weird things.
>
>
>
> Personal opinion of a nonvoter, just for the record :)
>
>
>
> The fact that roughly everybody in the strict-and-validation camp in the
recent discussions, adds in a different view on "with the exception of",
very very strongly suggests that the strict-and-validation POV is wrong
wrong wrong.
>
I wrote "I could imagine" not "I want or prefer" the numeric one. To me
being strict is what I would like to see.