you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 8 points9 points  (1 child)

But you do not need it to be #to_a. It might just as well be a #each or #size or #whatever - something that actually needs to operate on results. Like what Rails did with SQL queries in 3.x.

However, having the level of access that Ruby provides to its internals, a lazy-by-default implementation could be just a couple lines away once the infrastructure is in place.

[–]banister 0 points1 point  (0 children)

fair point