Re: [RFC] [DISCUSSION] Scalar Pseudo-type
| From: | Tony Marston | Date: | Mon, 01 Jan 2018 09:21:57 +0000 |
| Subject: | Re: [RFC] [DISCUSSION] Scalar Pseudo-type | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101470@lists.php.net to get a copy of this message | ||
"Dustin Wheeler" wrote in message news:A93010E9-7E52-4144-81B8-6FB6F47D85FF@ncsu.edu...
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. -- Tony MarstonOn Dec 31, 2017, at 10:33 AM, "lists@rhsoft.net" <lists@rhsoft.net> wrote:Could the discussion be re-centered around the RFC at-hand rather than measuring "ego"? It seems that any thread that has both rhsoft and Tony involved devolves into a competition of opinion without much attempt to meet in the middle or understand one another. Thanks. =Am 31.12.2017 um 11:27 schrieb Tony Marston: "Michael Morris" wrote in message news:CAEUnE0e67q2HMX8bmFjy5Mx8GMfxD=dNbSwF9cSuYntyn8xP8A@mail.gmail.com..."I have never used type hinting in any form whasoever" - so how can you be qualified at all to tell anything about the difference how it would be if you would have used it?I strongly disagree. I have been using PHP since 2001 and I have never used type hinting in any form whasoever. Does it make testing more difficult? No, it does notOn Sat, Dec 30, 2017 at 5:37 AM, Lester Caine <lester@lsces.co.uk> wrote: Not being able to vote, many of us have no option to complain about the way things are going. Currently there seems to be several styles of PHP form the nice and simple untyped version I moved to from very strictly typed hard compiled code I'd been using up until then, through to current code which is reliant on third party things like PSR and Composer and expects only strictly typed PHP.This is born of the fact that while ignoring datatype makes learning PHP easier, it makes using it harder - especially when testing.