News for hackers. Stuff that matters.
Re:2012: The year Rubyists learned to stop worrying and love... by bascule on Thursday December 20, 2012 @12:28AM (#4946407)
There's no reason that you would need to freeze anything but the state. Things like classes represent the function associated with that state. I'd generally say runtime modifications to the class hierarchy are BAD BAD BAD and you should never do them and you should feel bad when you do them, but that's a separate concern from concurrent state mutation. Detractors of OOP might wave their hands and say OOP colludes function and state, but really they're cleanly separated: it's the difference between (meta)class and instance.

Concurrent languages like Erlang allow you to swap function at runtime even though they're mutable state.

There are no comments on this comment yet.