Hi,

How useful is "scalar" as a type hint? I'm not sure it provides any benefit
over "mixed".

Would it not be better to copy Hack and instead introduce two type hints:
"num" (or "number") which is int|float and "arraykey" which is string|int?

To me, these are much more useful pseudo types than "scalar" which gives me
no usable guarantees over the type of data a function/method is receiving.

~C

On Tue, 2 Jan 2018 at 08:38 Tony Marston <tonymars...@hotmail.com> wrote:

> "Lester Caine"  wrote in message
> news:a1bb2452-3969-ca72-cf19-4ca4bcd90...@lsces.co.uk...
> >
> >On 31/12/17 22:45, Michael Morris wrote:
> >> Please do not quote large swaths of Tony Marston's crap.  He's an
> >> unrepentant liar, braggart and trouble maker that most of the list has
> >> on ignore since the admins can't be bothered to do their job and kick
> >> him.
> >
>
> Just because you don't like what I write does not give you reason to call
> it
> crap.
>
> You call me an unrepentant liar - can you point to anything that I have
> said
> that has proven to be a lie?
>
> You call me a braggart - but at least I have a code base that is still
> going
> strong after 15 years without using any of those optional extras that have
> been added to the language starting with PHP 5.
>
> You call me a trouble maker - what trouble have I made and for whom?
>
> You should learn to keep your insults to yourself.
>
> --
> Tony Marston
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Reply via email to