Re: [RFC] [DISCUSSION] Scalar Pseudo-type
| From: | Tony Marston | Date: | Mon, 01 Jan 2018 09:15:19 +0000 |
| Subject: | Re: [RFC] [DISCUSSION] Scalar Pseudo-type | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101469@lists.php.net to get a copy of this message | ||
wrote in message news:e425ecf3-4ef8-826d-bf4c-3c7b588e1c1f@rhsoft.net...
Am 31.12.2017 um 11:27 schrieb Tony Marston:I know that it would take a HUGE amount of effort to go through my massive code base to put typehints on every function and method, but for what benefit? Unless I can measure a definite performance gain then the lack of benefits would not justify the cost. -- 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?On Sat, Dec 30, 2017 at 5:37 AM, Lester Caine <lester@lsces.co.uk> wrote: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 notNot 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.