Re: [PHP-DEV] Whitespace around Paamayim Nekudotayim (double colon)

2021-02-14 Thread Andreas Heigl
Hey Matt. Am 15.02.21 um 06:14 schrieb Matthew Brown: > 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

Re: [PHP-DEV] Whitespace around Paamayim Nekudotayim (double colon)

2021-02-14 Thread Stephen Reay
> On 15 Feb 2021, at 12:14, Matthew Brown wrote: > > 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

[PHP-DEV] Whitespace around Paamayim Nekudotayim (double colon)

2021-02-14 Thread Matthew Brown
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 dou

Re: [PHP-DEV] Re: Proposal: namespace the SPL

2021-02-14 Thread Levi Morrison via internals
On Sun, Feb 14, 2021 at 5:51 PM Levi Morrison wrote: > > Oof, this is a long one. I'm going to snip some of it but respond to > most things privately; I will also respond to some things publicly > later. > > On Sun, Feb 14, 2021 at 3:44 PM tyson andre wrote: > > > > Hi internals, > > > > > > 1b.

Re: [PHP-DEV] Re: Proposal: namespace the SPL

2021-02-14 Thread Levi Morrison via internals
Oof, this is a long one. I'm going to snip some of it but respond to most things privately; I will also respond to some things publicly later. On Sun, Feb 14, 2021 at 3:44 PM tyson andre wrote: > > Hi internals, > > > > 1b. We may switch the direction of this alias in 9.0. > > The new names for

Re: [PHP-DEV] Re: Proposal: namespace the SPL

2021-02-14 Thread tyson andre
Hi internals, > > 1b. We may switch the direction of this alias in 9.0. The new names for existing Spl types at least seem more readable and possible to polyfill with `class_alias`. It should be clarified if "data types" include interfaces such as https://www.php.net/manual/en/class.splobserver