Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113181 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 27456 invoked from network); 15 Feb 2021 15:06:31 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Feb 2021 15:06:31 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 494C31804E4 for ; Mon, 15 Feb 2021 06:53:02 -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=-2.1 required=5.0 tests=BAYES_00,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-vk1-f177.google.com (mail-vk1-f177.google.com [209.85.221.177]) (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 06:53:01 -0800 (PST) Received: by mail-vk1-f177.google.com with SMTP id v66so1528690vkd.10 for ; Mon, 15 Feb 2021 06:53:01 -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=TaKBdXsIMtk4nXp5uReC3CY3W1qNpioCIVKfURb2J1Y=; b=a7ZTdKBkFNlbFL6UzQ8EA8KwSaWB/rLHVAMl9Sw3ru0/xBB/LJDGdbo/M2FiZhtCXA jadmhabgrgAAFbDMQitzR0SQn1mb81MuOU/GKfpsZ8eHKqK7wTz7ghWSkAdqSeW105T8 s0Og3rcNgFtvBCMC1tpIcUVUOCxn2X93OcyCMdCeSgyAzezInVo+GclQPaCt1dZRGTod dpEdXJ4lulAuSg/u/H9KFkyN5pkQhlOz1cihClngDxcItaR6Lg2uLOazkvilB3nnso9/ 0y+xSzjjX+vWWrGWvSoGY8gcEXGYwTtayqu+S1ysNQhzbHOzuf5x7HrpUdKqhLyxZL5k xOJw== 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=TaKBdXsIMtk4nXp5uReC3CY3W1qNpioCIVKfURb2J1Y=; b=AM/oznhKyOuTwf9Q23coeMGzjG/Yd8MSL882hq/Jmoce3g0VTw/gPdtt0lGlQxue/m e5RQ/VTWe1FPGpp+rYqFJ3tpNG5WEwIsskATs4+SnLZekrNaTT7zeefoFyigNCFuwsYX iPKB7NKgDuNPeoznQDrEk70JjgbyNd6pmC2YO+A+aB3ntLX+BP0X+DjSEDa8xwmlvZtj 4P8xwfi5LcPPHhh0oTswt3nUU+9lkrnDzXDPrgG1ltMqPZLQDaBUXJPDWwt5ygzR+PVb lQUdVw+7djp/1ewBSrOQq96ZWxX03WFSvmJqNC3E6QVwINLTRGcigc93zxoj83YNrJ4z quRw== X-Gm-Message-State: AOAM531rOj60icyMAXnRzWb/kNXbrNeYEkeQtZPTaHRSe4sIT2YC/u5M Lqx8maxUTsP5Isay87PVA3xSh60e3hzGcVhKire+eBblEGU= X-Google-Smtp-Source: ABdhPJzN1OG5ejXmg5rbaLcTVc2kv8HL8p9ibUxtcsbaCaI8enUhXOTU7TntE/BWLd+WALdoRng6gmxCIhJSZSiKw24= X-Received: by 2002:a1f:a186:: with SMTP id k128mr8532348vke.11.1613400780314; Mon, 15 Feb 2021 06:53:00 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 15 Feb 2021 09:52:49 -0500 Message-ID: To: Stephen Reay Cc: Internals Content-Type: multipart/alternative; boundary="000000000000641ab705bb612498" Subject: Re: [PHP-DEV] Whitespace around Paamayim Nekudotayim (double colon) From: matthewmatthew@gmail.com (Matthew Brown) --000000000000641ab705bb612498 Content-Type: text/plain; charset="UTF-8" There are plenty of places where PHP doesn't allow whitespace currently. The most comparable example is between namespace separators: Ns \ bar(); Ns \ SOME_CONST; are both syntax errors. `MyClass::bar()` and `MyClass::SOME_CONST` are often used in place of `Ns\bar()` and `Ns\SOME_CONST` because the former invokes the autoloader in a way the latter does not. My gut tells me they should behave the same way with respect to whitespace, too. In some situations PHP _does_ treat the identifier "Foo::bar" differently to "Foo :: bar": class A { public static function b() { return 5; } } echo "A::b"(); // works echo "A :: b"(); // fatal error --000000000000641ab705bb612498--