News for hackers. Stuff that matters.
Re:Ruby might be faster than you think by the_gastropod on Wednesday April 24, 2024 @10:56PM (#40152849)
> if it wasn't idiomatic Ruby

It's idiomatic Ruby in a very particular case that likely was explicitly chosen to demonstrate such a dramatic effect.

You're _usually_ not returning implicit arrays from loops in production code. Parallel assignments, when they're used, are almost always in the first line of an initialize method, not the returned line of an enumerable block.

There are no comments on this comment yet.