Re: [PHP-DEV] [RFC] [DISCUSSION] Scalar Pseudo-type

  101471
January 1, 2018 11:00 lester@lsces.co.uk (Lester Caine)
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.
I'll ignore the slander ... but perhaps now it the time that I simply cut my poor clients loose and leave it up to them to keep their websites working. Certainly the amount of time wasted coping with CRAP windows updates such as happened last week, the minefield these days of keeping Linux servers actually working and the problems of prioritising just where to spend the remaining time to just keep currently live sites working leaves no time to do any NEW work! OH and the bastards in the US who steal .com domains for porn crap and ICANN does nothing to protect us from !!! At least non US controlled domains are honest when we PAY to renew! Another job to waste time on this week :( So NO I DON'T NEED STRICT TYING ... THE DATABASE INTERFACE TAKES CARE OF LIMITS AND VALUES THAT int DOES TOTALLY NOTHING FOR !!!! -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
  101476
January 2, 2018 08:37 TonyMarston@hotmail.com ("Tony Marston")
"Lester Caine"  wrote in message 
news:a1bb2452-3969-ca72-cf19-4ca4bcd9074d@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
  101488
January 2, 2018 13:37 t.carnage@gmail.com (Chris Riley)
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 <TonyMarston@hotmail.com> wrote:

> "Lester Caine" wrote in message > news:a1bb2452-3969-ca72-cf19-4ca4bcd9074d@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 > >
  101491
January 2, 2018 16:00 sebastian@php.net (Sebastian Bergmann)
Am 02.01.2018 um 14:37 schrieb Chris Riley:
> How useful is "scalar" as a type hint? I'm not sure it provides any benefit > over "mixed".
scalar has the benefit of exluding arrays, objects, and resources.