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

Reply via email to