> Well, we don't have $continue anymore, so no point in discussing that bit. >
Ah yes, just noticed that. Good work! About $break... I'm not sure whether this feature is good or just a > performance/debugging hog, but I'm definitely sure I almost never use it > myself (same in Ruby). When I iterate over a collection I want to complete > the whole collection. When I only want to find certain stuff I use detect or > findAll. Still, detect depends on break functionality. Maybe the method call > roll its own $break, slimming down the original each? I think this is definitely the way to go. As performance is important it seems like a bad idea to slow all loops down because of the rarely used break. Remember - forEach and others in JavaScript 1.6 don't have break. Each user > has to roll its own explicitly. Maybe we can turn Enumerable.each from > implicit break functionality to explicit (optional)? How would you implement this optionally? -- Dan Webb http://www.danwebb.net Event Wax (http://www.eventwax.com) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---
