If you find a lot of languages with a single message sent for all possible changes it may help to include the relevant APIs when you submit you feature request so the team has something to model the request on.sritcp wrote:I couldn't believe there wasn't a simple, non-convoluted way to determine when an object has been modified.
It appears there isn't.
In my own limited experience, what may seem "convoluted" to some merely seems like "complete control" to me: we have separate messages for specific actions (e.g. "mouseUp") or categories of actions ("textChanged"), giving me enough control to determine exactly what I want to do for a given app.
With one single message, consider that clicking a button changes the mouse stack twice, once to highlighted and again to non-hightlighted. Should the stack save twice each time a mouse is clicked? Or consider text entry: with every key stroke the contents of a field changes; should the stack be saved on every keystroke?
While I can appreciate the attraction of a single message, I suspect that in practice it may prove quite troublesome, prompting most of us to just go back to the more granular control we have today with invidivual messages.
That said, I realize my view is only based on the work I've done, and there may be other circumstances where a single message may be optimal, even if my own experience is to limited to allow me to think of one myself.
You've noted that the auto-save scenario may not be a good example, so may I ask what sort of scenario did you have in mind when you first propose this new feature? In addition to helping refine the enhancement request when you submit it, once we know the specific task you're looking to achieve we may be able to help you come up with acceptable solutiions using what's the language offers today.