I don't see why that's true. It would be simple enough to use a proper OO solution, such as writing a class that has the same interface as an Array but tracks changes, or to extend Array instances with a module that does the same.
--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/fnpTlBZ-lD4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4bd3927b-e335-4b5c-b631-80f7e21cee0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I remember there was some discussion at some point in time about doing something like that and it was dismissed for some reason, but I could be wrong.Of course that would be ideal, to track the dirty state. On the other hand freezing the array is much easier and less complex to implement so it could at least be the first step, if we want to see it in Rails any time soon. I think we do need something, because right now it's really prone to user error.
HStore also has this issue I think.