This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html
Set by lizmat on 8 June 2022.
Da-ding! I have a grammar where one rule is essentially syntactic sugar for another rule. Inside an action method, am I able to restructure the match and pass it into a different action method? Or would I have to create a separate subroutine to contain any shared behaviour? 06:32
Secondly, to solve this I was thinking of delegating everything to a separate class anyway, leaving pretty much every method in the action class as 'method foo($/) { Bar.foo($/.values.map(*.made)) }`. Any ideas on how I might be able to reduce this boilerplate code? 06:34
Secondly, to solve this I was thinking of delegating everything to a separate class anyway, leaving pretty much every method in the action class as `method foo($/) { Bar.foo($/.values.map(*.made)) }`. Any ideas on how I might be able to reduce this boilerplate code?
guifa Da-ding! you can call one one action method from another one — there's actually not anything particular special about action methods 13:55
as to the second one, if you're going to farm out everything to the other class.... why not make it the action class? 13:56
just do :actions(Bar) instead