J
James
Hi,
I've done much OO coding in perl 5 and I'm
making the move over to ruby.
Gosh, don't your programs get shorter!
What would be a good ruby idiom to move efficiently from
a positive integer in the range 0 to ~2000 to a specific
method call?
A case / when statement would do this simply, but in perl
I sped this up by building a lookup table using
an array containing references to the appropriate perl subs.
Best Wishes,
James
I've done much OO coding in perl 5 and I'm
making the move over to ruby.
Gosh, don't your programs get shorter!
What would be a good ruby idiom to move efficiently from
a positive integer in the range 0 to ~2000 to a specific
method call?
A case / when statement would do this simply, but in perl
I sped this up by building a lookup table using
an array containing references to the appropriate perl subs.
Best Wishes,
James