Re: [VOTE] Scalar Type Hints
| From: | Pavel Kouřil | Date: | Thu, 12 Feb 2015 07:05:32 +0000 |
| Subject: | Re: [VOTE] Scalar Type Hints | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-82514@lists.php.net to get a copy of this message | ||
On Thu, Feb 12, 2015 at 1:13 AM, Andrea Faulds <ajf@ajf.me> wrote:
>
> A number (or numeric, or num, or some other name) type hint is something I plan to propose in a
> future, follow-up RFC.
>
Hello,
wouldn't polymorphism (via method overloading) solve the use cases and
be much more useful in the long run than introducing a something
that's not a type into type hints?
Regards
Pavel Kouril