Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92329 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34018 invoked from network); 15 Apr 2016 09:32:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Apr 2016 09:32:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.54 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.215.54 mail-lf0-f54.google.com Received: from [209.85.215.54] ([209.85.215.54:36022] helo=mail-lf0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/A0-29891-B25B0175 for ; Fri, 15 Apr 2016 05:32:28 -0400 Received: by mail-lf0-f54.google.com with SMTP id g184so138696535lfb.3 for ; Fri, 15 Apr 2016 02:32:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=JIcBQg6RP0i/HCJyRX/wmyzL1s3tL5PlG/bCH2e83+I=; b=gjUgS/S7oIlgM/J41xEnqRJiocSPPQYcqeokhgkIjyO0r7iXNYnCGF16VVI9BruYMT +DH78S7ifE4GoWg01ZtBtMJilmHnJnJEh5T5GPe71bwbZ7i1g7CwUCUV1AJXiGZZzdMR K1tsaMUeSa7b1p94DRi8GPmG3RtsLlLcqo6k8HdKdtdGvwbzpDbm5DtbgbPw3z+XQRwk d19R77XSwKFq84rTBjtescpbCUdmwpm/7Kknfh1U9kU75UQeaxTu58slySrgigvJLezG 3S2SU69YZVc/DIXGkjbgwJ8NZ+mjB1Ha/SDkyXEG+cOPkGggLKGi9AXr8lrqdUNBqPvn Tlww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=JIcBQg6RP0i/HCJyRX/wmyzL1s3tL5PlG/bCH2e83+I=; b=jF2lu5qmC1Oh4MsfMEbMYAWx48Jg0Ianr17NEsYJgH0uIPwJEhwvfb0Pfzo1J+qhDJ CgoBkzOIZrW1kGCGtnbrXavIoUntrPWcl8LK25l8DHA99nVC/ZFZAZpaQWP3dTR9EVIO Eu3qJj4ZxNdyhRviVPdR0rFsRZmrJe8I3WzolkT1QTgHfLsT0uYtBZ+SDCIYpaBULOV4 igeYCWon6yRq1JRK0UVyu1kJrsCoHfzowxYGdW116LBZWJ/dt43+zjKJyDr2lXPfr8/A mdum3etb5PEK0JZDHMapOFUFDl67HNp9IWHmYSKBezv6lLoA1DzmvHUIwwoT6nIyYDnF Ho4A== X-Gm-Message-State: AOPr4FUaUBk/rHxNRAphYd0s/+PPAOVFJZrw7/0LFzjPCch7dQa26os3AleydXfdDSAinEHEKncVwhCa+y0I6w== MIME-Version: 1.0 X-Received: by 10.112.154.106 with SMTP id vn10mr8442856lbb.123.1460712744977; Fri, 15 Apr 2016 02:32:24 -0700 (PDT) Received: by 10.112.126.67 with HTTP; Fri, 15 Apr 2016 02:32:23 -0700 (PDT) Received: by 10.112.126.67 with HTTP; Fri, 15 Apr 2016 02:32:23 -0700 (PDT) In-Reply-To: References: <570E99AC.3090804@fleshgrinder.com> <570EA5EB.8090501@fleshgrinder.com> <570EAB0D.6080706@gmail.com> <570EB67E.8010908@garfieldtech.com> <5B147E88-CC0A-4CBC-A49D-C7FE3BF557C0@zend.com> <6F.C3.12455.94C5F075@pb1.pair.com> Date: Fri, 15 Apr 2016 11:32:23 +0200 Message-ID: To: Tony Marston Cc: PHP Internals List Content-Type: multipart/alternative; boundary=089e0122af2a488d28053082b0f6 Subject: Re: [PHP-DEV] Re: Improving PHP's type system From: ocramius@gmail.com (Marco Pivetta) --089e0122af2a488d28053082b0f6 Content-Type: text/plain; charset=UTF-8 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" 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 > > --089e0122af2a488d28053082b0f6--