Hacker News new | ask | show | jobs
by UncleOxidant 2099 days ago
> - Endless method: this one is cute, I love it!

It's a weird name for it. It should probably be called something like 'equational method definitions'

3 comments

>It should probably be called something like 'equational method definitions'

Yeah, that's not weird

It's sort of a pun, because the method doesn't need an "end".
You're right. Maybe hyphenation would help here: "End-less methods"
It's a bit of whimsy from the originator of that feature:

https://bugs.ruby-lang.org/issues/16746