logoalt Hacker News

wiseowiseyesterday at 4:44 PM1 replyview on HN

> convention

Is the keyword. Anything that should never be broken isn’t a convention. There’s no better convention than compiler error.


Replies

goatloveryesterday at 5:10 PM

Because Ruby is a dynamic language which mutates state. That isn't considered wrong or bad in those kinds of languages, just a way to make sure the programmer knows they're doing that. Not every PL tries to live up to the ideals of Haskell.

If you don't want an object mutated in Ruby, you can freeze it.

show 1 reply