Jake Zimmerman personal blog

Ruby's private keyword is weird

Ruby's `private` keyword means something different compared to basically all other object-oriented languages. Most other languages don't even have a feature matching what Ruby calls `private`, but incredibly, Scala does, which it calls `protected[this]` (meaning
Points
109
HN comments
38
Submissions
1
Cited by
0 commenters

Programming LanguagesSoftware Engineering2023

On Hacker News

SubmittedTitle on HNPointsComments
Dec 14, 2023Ruby's private keyword is weird by jez10938

More from Jake Zimmerman

All 6 posts →

Related posts from the same era