I’m not defending Ruby, I don’t recommend Ruby to anyone, I’m just trying to be fair in my hits. You cannot expect to write an immutable variable in Ruby – Ruby doesn’t propose to support such a feature.
But, when you write a constant in Julia, it’s fair to expect it to be constant. 🤷
(But it isn’t.)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
But I have to admit it shouldn’t use the word “constant” anywhere, not in code (it doesn’t), not in documentation (it does).
I’m not defending Ruby, I don’t recommend Ruby to anyone, I’m just trying to be fair in my hits. You cannot expect to write an immutable variable in Ruby – Ruby doesn’t propose to support such a feature.
But, when you write a constant in Julia, it’s fair to expect it to be constant. 🤷
(But it isn’t.)