Perl-Apollo / Corinna

Corinna - Bring Modern OO to the Core of Perl
Artistic License 2.0
156 stars 19 forks source link

Eliminate ambiguous grammar for ':handles' #37

Closed HaraldJoerg closed 3 years ago

HaraldJoerg commented 3 years ago

As discussed on IRC: The grammar for method delegation needs to be able to distinguish between two identifiers (foo,bar) and one mapping (foo=>bar). The syntax I propose has been presented on IRC and didn't get sufficient criticism.

haarg commented 3 years ago

Consider :handles(first second third : fourth fifth). I think without the commas it is very unclear.

Ovid commented 3 years ago

Thanks, @HaraldJoerg !