Dear Christian and BaseX developers,
just wondering if adding something like the following would be hard to implement.
/store:observe($key as xs:string, $observers as function(*)*) /
with $observers being something like
/function($key as xs:string)./
The semantics is to call the registered observers whenever a value associated with the key in the store changes (put, remove, clear, ..).
This would allow for nicely decoupled observer - notification pattern.
Does it make sense?
Regards,
Marco.