Throwing StopIteration in array extras to stop the iteration
jwalden+es at MIT.EDU
Mon Mar 4 08:24:40 PST 2013
On 03/03/2013 06:53 PM, Andrea Giammarchi wrote:
> I had to check msdn rather than MDN since latter does not mention it while mans shows an example: http://msdn.microsoft.com/en-us/library/ie/3k9c4a32(v=vs.94).aspx
The RegExp statics aren't mentioned because they're a bad idea, imposing costs of some sort on pretty much all regular expression uses. Don't use them!
And, um, this is quite possibly the most awful way to find a value in an array that I've ever seen. Even setting aside the statics usage!
More information about the es-discuss