Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113184 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 59912 invoked from network); 15 Feb 2021 20:06:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Feb 2021 20:06:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 715381804B1 for ; Mon, 15 Feb 2021 11:52:55 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 15 Feb 2021 11:52:54 -0800 (PST) Received: by mail-ua1-f48.google.com with SMTP id d3so2755775uap.4 for ; Mon, 15 Feb 2021 11:52:54 -0800 (PST) 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=BaA6N7XWv2tR/xVvwsEe+s2NfbEumGGZFOWO7lB3BAY=; b=nofwZ0n/KnUE2ssGUQJvggJdohC6S4q5la6Q43h0Fdm7vUJVtVaoDG9heiDEeFSJec f+Z92n76XMdu7cgf+umUW6MmU2axZfDEA51LkqeMZmdM3Qc8CoDxj1R0KQpUSkBXgHHJ slMFyf50hbu2EOMOVBOQFHdvx1WVIuGIaewKgdO8/tCHAs+IajIYtc+kI4KdGhvxbyi2 8LHuT5ewB1zdRPnoJ0MDurbvzljYIIMz88cxc9t0ydFdyWvxXvlNuT9Fgl+8CX27mNKS xWzj4nJlBvl1maseOtuXN0wlMQvdaCdo1L4PQGezm7eqgA1tF7Rm+UrzG4idkrjUvpOv DeCg== 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=BaA6N7XWv2tR/xVvwsEe+s2NfbEumGGZFOWO7lB3BAY=; b=Aa1LPyIbWsTdx8Q8sdw5mK6Dhea0lY998l9ggAUEtdgHCIfnaAgjRsPUOG/bufIR6T //n/+xDAPQrdGEcqtPQxFTnjoXGHUD8SMoCXP23zpIPr6rwaCEvoh/RB+B4pZJq6/fzM XkXBdRaRtH7lUHV+1LgV04vBGRKK68tmQnEjt8uUgr18PSkx/jAeh9drQz+PTw63NeMT jlB9ThYzPbK6TvYSbpY3L6CQEJiGXoNRrH5mMyU4pVQBBc7dz4rAOKefz0MvzcMcjtqQ iBaC08wSTj1zBnkKzvHF2RALKkHaIPAposL0U+QT9BeskPrmta2HTIGK+OjVaQxVDEid jLhA== X-Gm-Message-State: AOAM5301eNwoeqkxBmgJq1NTb5VQtSf2h/dGZTkV5eWSFUXP5I15Lb+2 FF+dCDwo0Pq5tmA8QKZudU49QTxSNH7wssC35SY= X-Google-Smtp-Source: ABdhPJzJoIM4S5TE2NCMdbvI1MhgE+QptH0k62+DxQ9fdahjkr9tW+P4nNEcXCf/WphFPtE3kyeR3O/edrKNDFE2E+0= X-Received: by 2002:ab0:73d2:: with SMTP id m18mr9823092uaq.86.1613418773479; Mon, 15 Feb 2021 11:52:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 15 Feb 2021 14:52:42 -0500 Message-ID: To: Sara Golemon Cc: Stephen Reay , Internals Content-Type: multipart/alternative; boundary="000000000000de059005bb6554b2" Subject: Re: [PHP-DEV] Whitespace around Paamayim Nekudotayim (double colon) From: matthewmatthew@gmail.com (Matthew Brown) --000000000000de059005bb6554b2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 15 Feb 2021 at 11:05, Sara Golemon wrote: > That change was made very recently (8.0) and was done for technical > reasons (attributes) not aesthetic ones. > > Personally, I agree that adding whitespace around double colon is a > suspect move, but breaking valid code for the sake of one's own sense of > aesthetic doesn't progress the language, it regresses it. > > -Sara > > TL;DR - I vote No to such a change > OK, I take your point. While I'm at it, I would also be happy for PHP to treat this as a parse error (vs a runtime error, as it does currently): $a-> list($a, $b) =3D $c; But requiring zero whitespace after `->` would invalidate quite a bit of existing code. My reasons aren't _just_ aesthetic, mind =E2=80=93 this also leads to ambig= uity during autocompletion in IDEs. I realise it's not internals' job to make that easier, though. --000000000000de059005bb6554b2--