« Return to Thread: try-except in generator methods

Re: try-except in generator methods

by Avishay Lavie :: Rate this Message:

Reply to Author | View in Thread


Ok, so zip() and for() and everything else that uses IEnumerables
should call dispose on them, that makes sense, but it's still valid
for the "calling code" to only call MoveNext twice without disposing.
So basically, we're talking about a "best effort" kind of support,
where "as long as you use the language's builtin features, disposables
are disposed correctly"?

Also, that reflected code made me realize we really need to typfiy our
tuples and perhaps use string.Format() instead of newing up a
StringBuilder on each string interpolation :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Boo Programming Language" group.
To post to this group, send email to boolang@...
To unsubscribe from this group, send email to boolang-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/boolang
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: try-except in generator methods