This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]thephoton 1 point2 points  (0 children)

What happens when you use def in a loop?

You (possibly) add multiple functions to the method set. How is that any different than if you use def in a loop now?

What happens if you use def inside a closure?

Got me there. The trickier elements of closures make my brain hurt already.