oetzi/echo — Issue #42: Fix implementation of occs
Author: oetzi
Created: 2011-12-17 13:41:35+00:00
State: open

There is a problem with the way `occs` is implemented. The semantics are as follows:

occs :: Event[a] -> [time, a]

The problem is that because Events can be added externally (with the occur function) the following could happen:

occsOne = event.occs
event.occur(new Occurence(now, 5))
occsTwo = event.occs

Here occsOne would not equal occsTwo. Not exactly sure how to deal with this as Conal and other tend to forget about non deterministic events (conveniently).