Re: Scalar Type Intentions
| From: | Adam Jon Richardson | Date: | Thu, 01 Mar 2012 14:33:54 +0000 |
| Subject: | Re: Scalar Type Intentions | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-58413@lists.php.net to get a copy of this message | ||
On Thu, Mar 1, 2012 at 8:55 AM, Anthony Ferrara <ircmaxell@gmail.com> wrote:
> Please do not implement int, float, etc as an alias to scalar. That's
> going to cause nothing but trouble later on. It will instantly close
> the door to any type of casting magic (due to BC concerns), be
> completely non-obvious ("I hinted for int, why is it a boolean?"), and
> cause nothing but confusion.
>
> If you only want to add a scalar hint, I'm fine with that (for now),
> but please only add the scalar hint, no aliases...
>
> Anthony
Anthony, can you provide an example so I can better understand your
concerns?
Thanks,
Adam