4 ms·
The type system and multiple get rid of so much “if this then do that” code. multi sub eat-pie( Pie slice where *.is-custard ) { ... } multi sub eat-pie
by daotoad 7y ago
The type system and multiple get rid of so much “if this then do that” code.
multi sub eat-pie( Pie slice where *.is-custard ) { ... }
multi sub eat-pie( Pie slice where *.is-fruit ) { ... }
multi sub eat-pie( Pie slice ) { ... }
eat-pie( a-slice-of-pie );
That’s just awesome.