Hi internals
On Mon, May 10, 2021 at 10:32 AM Marco Pivetta <[email protected]> wrote:
>
> Hey Matīss,
>
> This already works by replacing `;` with `{}`: https://3v4l.org/tN4HM
>
> Is the change in AST really necessary, considering that?
The root problem is not that {} is significantly worse than ; but it's
that some cs tools require obnoxious formatting.
```
class Foo {
public function __construct(
private Bar $bar,
private Baz $baz
) {
}
}
```
I agree with Marco, it makes more sense to fix the cs guidelines
rather than to adjust the language just to work around it.
Ilija
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php