Makes sense. I was aware of the length issue, but iteration speed certainly makes sense too.
The real reason for a desirable subclass would be if this was distributable code we wouldn't want to "pollute" Array with an this example "increment" method. On Friday, December 6, 2013 2:31:58 PM UTC-5, Nutron wrote: > > Well, you just wouldn’t call it on arrays that you were putting > non-numbers into. > > The only real reason is that your example extending array is really just > creating a class with Array’s methods. You loose length and maybe some > other goodness that makes Array iteration fast, for example. > > -- --- You received this message because you are subscribed to the Google Groups "MooTools Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mootools-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.