Re: Re: Improving PHP's type system

From: Date: Fri, 15 Apr 2016 09:32:23 +0000
Subject: Re: Re: Improving PHP's type system
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-92329@lists.php.net to get a copy of this message
Tony, that sounds really like "real programmers use dd -if -of". Please stop with that argument, as it really doesn't reflect reality. I keep enhancing my software with new (stricter) type checking, when available. For example, I'm eager to replace current docblocks declaring void methods with the upcoming hint (7.1), and every time I add hints and type strictness I find new hidden bugs on an already well-tested code (with 100% coverage and mutation testing). These bugs are legit, they are just waiting to happen. Additionally, I would also love to get rid of docblocks for type-systems: they are unreliable, hard to reflect and enforce nothing, which allows lazy and sloppy programmers to just circumvent specifications as it best pleases their mood, rather than the requirements. Yes, I'm a real programmer too, and no, I don't use cosmic rays to write code to my computer's hard drive, give it a rest. On Apr 15, 2016 08:09, "Tony Marston" <TonyMarston@hotmail.com> wrote: > "Levi Morrison" wrote in message > > news:CAFMT4Nr4GmnBBsOfydF5sLOtaEo1rZZiPdGdV8v6y+Z-6PVCOg@mail.gmail.com... > >> >> There are too many people out there who are trying to make the language >>> more complicated than it need be just to prove how clever they are. >>> >> >> I can assure you I am not proposing these RFCs to show how clever I am. >> > > If millions of programmers have written millions of lines of code to write > effective programs WITHOUT the use of type hinting/enforcement, then how > come there are some people out there who keep saying that PHP is a bad > language because it does not have type checking? Those who cannot write > effective software without these "clever" additions to the language are > doing nothing but announcing to the world that they are not clever enough > to write effective software using their own limited abilities. > > -- > Tony Marston > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#92329) next »