Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106948 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 7170 invoked from network); 12 Sep 2019 16:26:26 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 12 Sep 2019 16:26:26 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 1C2902D1FD0 for ; Thu, 12 Sep 2019 07:02:21 -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-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) (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 07:02:20 -0700 (PDT) Received: by mail-ua1-x933.google.com with SMTP id n6so8026551uaq.3 for ; Thu, 12 Sep 2019 07:02:20 -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=2m1JtpDGQ07rQ9umnxSlvoIZ7hlEt26GZhL/AlOz7L4=; b=QPXYDUSSUuXgImJSMfj3VLGZh3nL65Kq3jcra8+12ODU65R+E9qrAIXxG+/uyu7Zbj QmiTm/92tJfg6SfNkRdW1ct2kkFN0Squ+uIfp3MD9cim3Lkde8zMO7nbhB10AwuUacxQ /8LYbPRjJmS6XZT8RvnBcNNh5wJIbkIvr1bZQnJHe3eUJOVD0dSGuYen2Ck9jhFTAotV KA2i1JqFSrKi7u9Q/KHYQYw3edjq+iansFFUBXi1B1GbYCRbYEaisr2LNxu1pTjpyaXI qET0UaF6W7LMNMVpg6qoECBy+rT1zvWztNEOWsdJGYZJb5aEf4vTNJ2TVDyQK8e8hRxl S1lQ== 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=2m1JtpDGQ07rQ9umnxSlvoIZ7hlEt26GZhL/AlOz7L4=; b=BNhaW/c4FxIKl2C3rwzeQE8jACgGR4Mans5DEef+3VhPnSEOY8STTnaUMB4TKHa9Za vQ76WuAC4kxupCxREW0BDdHeMZ1mQe1mcKHf0JcNayflViQd8XDbYUo0CRePP/6DbSto MrE0bn/fERgAutHdXpm+D2hmrV23yGGcpRN6BM1fIjg9oxixR/d1eAR3QUMDiPOmO8c1 Pyd9yejfRwEhZlbJHA/Z9L4OisqMFppfz2y7LCSyeDTJ/f/CgDPCDCpec4geHqt37c42 mwZJNKL+tPQVpgM4NsXc5UH7Ord8Uh++jyG7OrVL4bUI3kQdcUD120EEF8gb8HU8QW97 cyXg== X-Gm-Message-State: APjAAAW2L7oROdqWoC5q/2tLHHUdnAjwIA9FhcwKxEaF8ms/sy0MmvMu 9m/yYx4yo4Bhk7ba+y7nf1sVRuC3Qt/T2GWT+Wg= X-Google-Smtp-Source: APXvYqxQR//H679O6M/97I0l3tQTV5pviHYhP6T55UnabEHN1GITydv49rEI+K+2pTkkgLeiRmzgVZiv3hD7IpgCos8= X-Received: by 2002:ab0:5b1d:: with SMTP id u29mr17725146uae.38.1568296939892; Thu, 12 Sep 2019 07:02:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 12 Sep 2019 10:02:08 -0400 Message-ID: To: Claude Pache Cc: Marco Pivetta , Rowan Tommins , PHP internals Content-Type: multipart/alternative; boundary="00000000000001379e05925b96a0" X-Envelope-From: Subject: Re: [PHP-DEV] [RFC] Reclassifying engine warnings From: chasepeeler@gmail.com (Chase Peeler) --00000000000001379e05925b96a0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Sep 12, 2019 at 9:55 AM Claude Pache wrote= : > > > > Le 12 sept. 2019 =C3=A0 15:33, Marco Pivetta a =C3= =A9crit : > > > > $foo[$key1][$key2] =3D ($foo[$key1][$key2] ?? 0) + 1; > > > > Marco Pivetta > > That violates blatantly DRY (twice the exact same lengthy expression > `$foo[$key1][$key2]`), so it is not a satisfactory solution. > > And that's why PHP is so awesome. You don't have to do all these stupid tricks just to do something simple like increment a counter. But, it looks like we're going to throw that out of the window because some people think that since they like doing it like the way above, everyone should have to. > =E2=80=94Claude > > --=20 Chase Peeler chasepeeler@gmail.com --00000000000001379e05925b96a0--