Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106988 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 98413 invoked from network); 12 Sep 2019 20:03:56 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 12 Sep 2019 20:03:56 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id C69C32C1C10 for ; Thu, 12 Sep 2019 10:39:52 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Virus: No Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Thu, 12 Sep 2019 10:39:52 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id t84so17843864oih.10 for ; Thu, 12 Sep 2019 10:39:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9kf28ICc71qgdJWVLOyhiT90B22bkFZFOLtuubGuOig=; b=FvY72hx7ezcr+mV00pUCy7CDz2MbXeIoEA9hV/VfkVfOUaGDovWbTHrcjRUuhxFhGT uQEjqmKNK+ibjeZIIJ5biY+re0QILAM5JYybsePyZNtTGOhKowvSNPiH1S8uMGNHMIAC mlc0hBDxUANDVArD7uEekueVMhjDauDMgc7KP/6dxoI499+5rx+8VITIIJQHb0OF8Xe6 j/VZydDs4Dq94IoQlSrSkAlCD/lTivQXyf4yXpoS76w/uLKOTlRPYKgI69U7pME/VTCK l43dyWq0aeIdIgr9opepbgBVUpDqKiRlUyqCBRoy7atL89/9mEzGSadRfIjQOZQ+Jwj5 J45g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9kf28ICc71qgdJWVLOyhiT90B22bkFZFOLtuubGuOig=; b=mOTfAI9x9PpnR3TzGxTG3opbgjjRf4vRiov3jeFjzvoZhj/KHEm5r2+AtFHQt7iKiy hdLlz9IOqbq5IzuXeU5UYI7mVuCuq8grtNaWamKads94dyeNrRRfvNElkuONiH4wHjKy p+rqlwqYyJovS08AZPCmD/RdyTkLojADa3+VLK3UzbCrMEp9AWxGcJi3HqEW9sfa6JyZ j+UKXnhnF8xOZK/6RnXXRQFXsXPzu2B0BoqPzmA7ngM/TE+koXSV/NRTlbjMIk24Q3rY OqyNKs5FxaxsE5NjijseE9xxn3tt3FAcIcsocZU9T0EnffkCMAz5SFGQBJ6DI1oZ4cxB pB1A== X-Gm-Message-State: APjAAAXZYsoAMEcaH+jjgdxl0UJ545Abu58/VhN4ctOX2URsFZYGalao c/Buk6z/7Gtpyu9mBEv2bEZ5JpvLR+VMksPP2pg= X-Google-Smtp-Source: APXvYqyoVvMZUST/GWRNP1169//8/MZOkwGMVod+Mcuud+xOKD96j/iJqfPbXNsvVsPwW7FHIBl1r6Vl4RyKdNolhOE= X-Received: by 2002:aca:ed52:: with SMTP id l79mr1190157oih.47.1568309991790; Thu, 12 Sep 2019 10:39:51 -0700 (PDT) MIME-Version: 1.0 References: <076701d56978$86020910$92061b30$@php.net> <078e01d5697c$5512bc10$ff383430$@php.net> In-Reply-To: Date: Thu, 12 Sep 2019 18:39:34 +0100 Message-ID: To: Chase Peeler Cc: Matthew Brown , Scott Arciszewski , Zeev Suraski , Marco Pivetta , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000f55de005925e9fbb" X-Envelope-From: Subject: Re: [PHP-DEV] Changing fundamental language behaviors From: oludonsexy@gmail.com (Olumide Samson) --000000000000f55de005925e9fbb Content-Type: text/plain; charset="UTF-8" On Thu, Sep 12, 2019 at 6:22 PM Chase Peeler wrote: > On Thu, Sep 12, 2019 at 1:05 PM Matthew Brown > wrote: > > > that don't fundamentally change the language > > > > > > There's clearly a big disagreement about whether this is a fundamental > > change or not. > > > > Preventing something that the entire field of software engineering frowns > > upon (and that most PHP developers avoid like the plague) doesn't seem > like > > a *fundamental* change. > > > > > I would argue that this is exactly such a change. The flexibility of PHP > has often been touted as a feature and something that sets it apart. > Whether that's good or bad is, frankly, irrelevant. There are valid reasons > for not always initializing variables or array keys. The major valid reason i see is creating a bolierplate or being lazy to initialize the variable with even null or similar null-type depending on its context. It might be a bad reason in your opinion, but others view it as perfectly > acceptable. Who are those "others"? I think he(me included) is also one of those "others" that view it as bad programming style... For 20 years people have developed code based on that feature. It was never > considered an error, and often not even considered bad practice. It was considered an error, that's why you were been warned or given notice that "Hey dude, you're writing a bad code here @ line 1427(l4zy) of already-problematic-file.php" and only if we want to remove Notice,Warning or Error in the language. > To suddenly define it as such is the exact definition of a fundamental > change > to the language itself. > Fundamental is always "fundamental", i think there's no good definition for it in this context, so leave fundamental changes out of this discussion as something totally bad been cleaned up is a fundamental change and something new but not used right and changed to be used right is also fundamental... > > What if Java suddenly said that all properties are suddenly private, and > can only be accessed through getter/setter methods? The fact that you > should make properties private and use such methods is a practice that was > drilled into me from day one. Would that justify making such a change, > though? > > I'm not sure how this relates, i think Java would let you see the good or bad, it's up to you to see or not from their view, let the majority move forward and don't be a stopping stone in moving this language past the 1993 bondage(needle-haystack, inconsistent naming and many issues we couldn't count)... --000000000000f55de005925e9fbb--