>> Proposed syntax
>> class A($prop) extends B("BlaBla", $prop) {
>> }

>Would this work with anonymous classes? If so, how would the syntax look 
like?

Currently this syntax can't be used with anonymous classes because those 
classes instantiated 
at once they declared and same syntax is used for forwarding parameters 
directly into constructor. 

new class(10) extends SomeClass implements SomeInterface {
    public function __construct($num) {...}
} 

I think that it is possible to create additional rule when use 
"parameter_list" instead of "argument_list". 
Some research is required.
But it will add some ambiguity when reading code.

Reply via email to