Open jubilatious1 opened 1 year ago
The example is nonsense. An attempt to return outside of any Routine
is always a runtime exception.
@raiph , not a great way to treat new users--filling the andthen
Docs with nonsense code instead of something they can actually learn from.
I'm thinking what to do about it. I don't really like the whole example (and I also don't like the last paragraph).
The banal fix would be to wrap the whole snippet into a function like analyze-and-load
... but that wouldn't improve the convoluted nature of the example.
Example code for
andthen
docs occasionally returns error:Attempt to return outside of any Routine
https://docs.raku.org/routine/andthen
Returns (sample):
The
Attempt to return outside of any Routine
error above seems to distract from the main point of the code.