From: MenTaLguY Date: 2007-04-13T00:58:42+09:00 Subject: Re: memory exhausted On Thu, 12 Apr 2007 16:05:05 +0900, Robert Klemme wrote: > But what do we gain by this? Eh, a little bit of correctness, I guess. It's probably best if the parser can handle anything which is syntactically valid Ruby, even if it's a bit dumb. (an alternative would be to actually have an explicit limit on the number of 'when' or 'rescue' branches in the grammar) > I guess CASE statements of that size are quite a lot more inefficient > than Hash lookups or other strategies. Yes, case statements in Ruby are a linear search. So too for rescue clauses. -mental