DEV Community

Discussion on: Ruby's Array: a Swiss Army Knife?

Collapse
 
stojakovic99 profile image
Nikola Stojaković • Edited

But sometimes, as in Ruby, we have the power to modify the language and/or extend it to suit our needs. This is an option we don't usually consider (maybe for historical reasons, and most people say it's "bad" without strong arguments) but it's perfectly valid.

It's not something people say without a reason - extending built-in language facilities can cause clashes with other libraries (this is most often the case with JavaScript, but I believe it's discouraged in Ruby for the same reason).