Delegated Properties and change notification


#1

I love what I'm seeing about Delegated properties, specifically in regards to easily creating observable properties without needing reflection.

I see in Properties.kt there are various change notification classes; are there any examples of using delegated properties with change notification?


#2

I think I'm getting closer to my answer, are there examples of something implementing ChangeSupport out there? I'm specifically looking of something listening to changes on an active model.


#3

I played with this a little (https://github.com/dittert/kotlin/commit/0e0362c9a57f986c6bb4d98b16ffa130834477a8) and probably even created a pull request for it but there never was any interest. The problem I found was that the library code to handle property changes differs quite a lot from the Java way. This causes friction when you're trying to play nice with existing Java code.


#4

I have this on my roadmap for stdlib, after finishing with stdlib cleanup I will pick this up.