Re: [RFC] Scalar Type Hinting With Casts (re-opening)
| From: | Ferenc Kovacs | Date: | Sun, 20 Jul 2014 14:54:49 +0000 |
| Subject: | Re: [RFC] Scalar Type Hinting With Casts (re-opening) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75712@lists.php.net to get a copy of this message | ||
2014.07.20. 14:43, "Andrea Faulds" <ajf@ajf.me> ezt írta:
>
>
> On 20 Jul 2014, at 08:33, Sebastian Bergmann <sebastian@php.net> wrote:
>
> > Am 13.07.2014 07:22, schrieb Stas Malyshev:
> >> I think it was a mistake to introduce this term from the start and
> >> we should stop propagating it.
> >
> > What would be a better term? Optional strict typing in function and
> > method signatures?
>
> This proposal’s scalar type hints (except for booleans) can’t really be
called “strict”. Perhaps “firm typing”? (It’s not weak, but it’s not quite
strong either)
Stas and Sebastian are talking about the unfortunate naming of the current
(non-scalar) typehints.