Hi, Python allows to call a .throw() method on a generator. I was wondering if Racket generators have a similar feature. From the docs it doesn't seem to have that. One way I could see around this is to set a parameter and then check for that parameter in the generator and raise an exception based on that. I could imagine writing a macro, e.g. yield-except, that does that check. The disadvantage would be that users would have to remember to use yield-except instead of regular yield in the generator.
Are there any other clever workarounds that I'm missing? Thanks, Kees -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

