These are chat archives for ThoughtWorksInc/Binding.scala

17th
Mar 2016
杨博 (Yang Bo)
@Atry
Mar 17 2016 13:34
The for/yield expression maps some BindingSeq(including Vars and Constants) to a new BindingSeq. You can perform calculation in the yield block.
杨博 (Yang Bo)
@Atry
Mar 17 2016 13:42

This kind of expression is pure because it simply create some new BindingSeq instead of affecting the real world.

However, if I understand your question correctly, you were asking how to change the real world. For Scala.js target, you invoke dom.render to mount a Binding or BindingSeq into a DOM document. For JVM target, you have to create your own SingleMountPoint or MultiMountPoint then invoke watch method on your mount points. In your mount point instance, you will implement some abstract methods to handle data changing events.

Note that these abstract methods are protected. You have to click Show all button to see them in the scaladoc.
@Jegp FYI
杨博 (Yang Bo)
@Atry
Mar 17 2016 13:52
Unlike other FRP framework, Binding.scala prevents user from registering event listener for a specific Binding expression. Instead, I encourage you create different types of mount point for different types of underlying system.