Re: [RFC] Scalar Type Hints v0.2
| From: | Julien Pauli | Date: | Wed, 14 Jan 2015 10:14:03 +0000 |
| Subject: | Re: [RFC] Scalar Type Hints v0.2 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80453@lists.php.net to get a copy of this message | ||
On Wed, Jan 14, 2015 at 1:16 AM, Andrea Faulds <ajf@ajf.me> wrote:
> Good evening,
>
> I’ve made some quite significant changes to my Scalar Type Hints RFC, and
> bumped its version to 0.2.
>
> Here: https://wiki.php.net/rfc/scalar_type_hints
>
> This is a new thread because I’ve made a significant revision to the RFC,
> so it’d be sensible to separate discussion of the updated RFC from the v0.1
> RFC.
>
> Please tell me your thoughts.
>
> Thanks!
> --
> Andrea Faulds
> http://ajf.me/
Hello,
Using declare() IMO, is a PITA.
Everything that can be done without the use of declare(), must be done
without declare().
I would have prefered different syntax, like the ones we disccussed many
years ago , having strict checks with the foo(string $a) syntax, and
non-strict check with the foo((string) $a) syntax.
Julien.P