> It can be done without the EVAL:
>
>> any('a', 'b', 'c').raku.substr(4, *-1).split(',').elems
>
> 3
Yeah, but only at the cost of some fragility:
> any('a', 'b,b', 'c').raku.substr(4, *-1).split(',').elems
4
I suppose you could do:
> any('a', 'b,b', 'c').elems.raku.substr(4, *-1).split(',').elems
3
but I'm not sure that's _that_ much better than EVAL – either way, we're
depending on the Str
representation of inherently non-Str data, which seems like the main sin of
EVAL.
– codesections
