IIRC, we use this Idiom in SICP while doing symbolic algebra.
For instance, when we have x+y=z and know only x and z, we need to reverse the equation to have y=z-x. The system was built on nodes which would propagate change (a-la events).
IMO, python's with statement with __enter__ and __exit__ looks mostly like this.
For instance, when we have x+y=z and know only x and z, we need to reverse the equation to have y=z-x. The system was built on nodes which would propagate change (a-la events).
IMO, python's with statement with __enter__ and __exit__ looks mostly like this.