Hey Matīss <http://ocramius.github.com/>
On Mon, May 10, 2021 at 11:12 AM Matīss Treinis <mrtrei...@gmail.com> wrote: > I don't necessarily agree with this point in particular - I mentioned PSR > just-by-driveby, since whoever does follow that convention will face this > issue - but the scope of the proposal is not limited to PSR adopters. It's > also worth pointing out that PSR is not an "official" coding guideline for > PHP, and therefore we should probably not limit the scope to it, simply > because regardless if the brackets are on the same line or not, they are > still there. > > IMO, this is a language issue - topical, cosmetic, and minor - but > language issue nevertheless, in fact, exactly like the one had for > attribute syntax. > > Let's gather some feedback and see. > At language level, `{}` is pretty much "no body" - it's more of an optimization pass for OpCache at that point. Adding AST always comes with major complexity for all the ecosystem: since there is AST isomorphic to the proposal, and it's literally one character in difference, I don't see a clear advantage. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/