Welcome! Log In Create A New Profile

Advanced

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

Posted by Fleshgrinder 
Am 01.01.2018 um 10:21 schrieb Tony Marston:
> Any attempt to make typehinting (or type enforcement as it has now
> become) is simply adding complications to the language which do not
> provide benefits to the greater PHP community, just a minority of poor
> coders who want the language to trap the bugs that they create in their
> code. There are some of us out there who are capable of writing bug-free
> code without type enforcement, so this RFC (and anything else connected
> with type hinting/enforcement) is something we don't need to use,
> therefore it has no benefits for us.

breaking news:
nobody is enforces anything to you

just don't use features you don't want to use but fix your dirty
attitude that everything you don't need should be voted down!

"There are some of us out there who are capable of writing bug-free
code" is a laughable argumentation anyways

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Tony Marston
Re: [PHP-DEV] [RFC] [DISCUSSION] Scalar Pseudo-type
January 02, 2018 09:40AM
wrote in message news:[email protected]
>
>
>
>Am 01.01.2018 um 10:21 schrieb Tony Marston:
>> Any attempt to make typehinting (or type enforcement as it has now
>> become) is simply adding complications to the language which do not
>> provide benefits to the greater PHP community, just a minority of poor
>> coders who want the language to trap the bugs that they create in their
>> code. There are some of us out there who are capable of writing bug-free
>> code without type enforcement, so this RFC (and anything else connected
>> with type hinting/enforcement) is something we don't need to use,
>> therefore it has no benefits for us.
>
>breaking news:
>nobody is enforces anything to you
>
>just don't use features you don't want to use but fix your dirty attitude
>that everything you don't need should be voted down!

I never said that just because I personally won't use a proposed feature
that it should be voted down. It should only be voted up if it can provide
benefits to the greater PHP community and not just a few individuals. I
specifically said that if you don't understand an RFC or the benefits that
it is supposed to provide then you should vote it down, otherwise you could
be held responsible for allowing the language to be corrupted.

>"There are some of us out there who are capable of writing bug-free code"
>is a laughable argumentation anyways

Why is that laughable? You appear to want to make the language more
complicated just to catch the bugs that you keep creating. Some of us have
learned how not to write such buggy code in the first place.

--
Tony Marston


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Marco Pivetta
Re: [PHP-DEV] [RFC] [DISCUSSION] Scalar Pseudo-type
January 02, 2018 09:40AM
On Tue, Jan 2, 2018 at 9:28 AM, Tony Marston <[email protected]>
wrote:

> "There are some of us out there who are capable of writing bug-free code"
>> is a laughable argumentation anyways
>>
>
> Why is that laughable? You appear to want to make the language more
> complicated just to catch the bugs that you keep creating. Some of us have
> learned how not to write such buggy code in the first place.


Please do stop spewing bullshit: some people still want to read meaningful
things in this mailing list.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/
Tony Marston
Re: [PHP-DEV] [RFC] [DISCUSSION] Scalar Pseudo-type
January 02, 2018 09:40AM
"Lester Caine" wrote in message
news:[email protected]
>
>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
Chris Riley
Re: [PHP-DEV] [RFC] [DISCUSSION] Scalar Pseudo-type
January 02, 2018 02:40PM
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 <[email protected]> wrote:

> "Lester Caine" wrote in message
> news:[email protected]
> >
> >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
>
>
Sebastian Bergmann
Re: [PHP-DEV] [RFC] [DISCUSSION] Scalar Pseudo-type
January 02, 2018 05:10PM
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.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, only registered users may post in this forum.

Click here to login