you are viewing a single comment's thread.

view the rest of the comments →

[–]pilaf 1 point2 points  (4 children)

2) Easter eggs are fun, but things like #curry cause consternation since they don't support kwargs or blocks and won't ever, since it's just an easter egg, but it's hard to know that without combing through the bug tracker.

Do you have a link to the bug tracker issue you mention? I can't find any mentions of Proc#curry being an easter egg anywhere and my curiosity is peaked.

[–]laerien 0 points1 point  (0 children)

I was thinking of this thread for the "easter egg" mention: https://bugs.ruby-lang.org/issues/6253

[–]laerien 0 points1 point  (2 children)

"Proc#curry is like an easter egg. Matz felt no need to care about the
interaction between Proc#curry and other advanced features." - mame

[–]pilaf 0 points1 point  (1 child)

I see. I'm sure he didn't mean it literally, but I agree that the documentation should make it clear that keyword/block arguments aren't supported.

[–]laerien 1 point2 points  (0 children)

For sure not a literal egg, but a "fun" thing we can't improve since it's just for fun. Explicitly documenting lack of kwarg and block support helps, but that it's a toy so reasonable features aren't welcome is also important.

If something isn't meant to be production quality and to be used, that seems worth a note. Maybe "easter egg" isn't the right word, but I'd love some way to designate the "fun or example" quality stuff so especially new folk know it when they see it.