Whitespace around Paamayim Nekudotayim (double colon)

From: Date: Mon, 15 Feb 2021 05:14:11 +0000
Subject: Whitespace around Paamayim Nekudotayim (double colon)
Groups: php.internals 
Request: Send a blank email to internals+get-113174@lists.php.net to get a copy of this message
Hey all, Is there interest in prohibiting whitespace around double colons in the next major PHP version? I was surprised to learn that PHP treats :: similar to ->, allowing double colons like A:: b(); Looking at the top 2,000 packages in Packagist I can't find any evidence of people using a double colon with whitespace around, and my suspicion is that the use of it is basically non-existent. I wonder if there's a benefit to removing a small potential footgun from the language? I can't really see any benefit to _keeping_ it (unless it turns out my analysis is wrong, and it's actually wildly popular). Best wishes, Matt

« previous php.internals (#113174) next »