reflex-frp / reflex

Interactive programs without callbacks or side-effects. Functional Reactive Programming (FRP) uses composable events and time-varying values to describe interactive systems as pure functions. Just like other pure functional code, functional reactive code is easier to get right on the first try, maintain, and reuse.
https://reflex-frp.org
BSD 3-Clause "New" or "Revised" License
1.07k stars 149 forks source link

Don't check in newSubscriberCoincidenceInner whether occRef is already set #496

Open parenthetical opened 10 months ago

parenthetical commented 10 months ago

The code currently checks in the propagate of the inner event whether the coincidence' occRef has been set. As far as I understand this should never happen unless there is a bug in the Reflex implementation. This PR adds an error to that case and puts the check behind the DEBUG flag.