Feature #6305

Lazy

Added by Thomas Sawyer about 2 years ago. Updated about 2 years ago.

[ruby-core:44395]
Status:Rejected
Priority:Normal
Assignee:-
Category:core
Target version:1.9.3

Description

I believe we discussed before but I couldn't find the issue, so I'll just bring it up again.

Might MenTaLguY's Lazy library make it's way into Ruby proper?

http://moonbase.rydia.net/software/lazy.rb/

https://github.com/mental/lazy

History

#1 Updated by Yusuke Endoh about 2 years ago

  • Status changed from Open to Feedback

Explain why a gem does not work for you.

Yusuke Endoh mame@tsg.ne.jp

#2 Updated by Thomas Sawyer about 2 years ago

That's kind of the thing about this actually. Because this library is a gem I am not using it even when I probably should be --or I am reinventing the wheel and probably in not the most robust fashion.

Also, since lazy enumeration is now being introduced to the language it seems like appropriate time to introduce general lazy features as well.

For use cases, Ruby Best Practices By Gregory T. Brown has a good chapter called "Laziness Can Be a Virtue".

#3 Updated by Yusuke Endoh about 2 years ago

  • Status changed from Feedback to Rejected

That's kind of the thing about this actually. Because this library is a gem I am not using it even when I probably should be --or I am reinventing the wheel and probably in not the most robust fashion.

Recently, we focus on "small Ruby" by moving stdlibs to gems because
adding a stdlib makes maintenance and release management hard.
2.0 will remove no stdlib for matz's compatibility policy, though.
Anyway, the reason you said is non-sense.

Personally, I understand you.
Picking wheat from chaff gems is not exciting work.
I suggested a separate "blessed" gem repository
for the reason, but I received a lot of hate.

Also, since lazy enumeration is now being introduced to the language it seems like appropriate time to introduce general lazy features as well.

I think it would be a better timing after lazy enumeration grows popular.

Please tell us if there is another "good" reason.

Yusuke Endoh mame@tsg.ne.jp

Also available in: Atom PDF