Closed jhellerstein closed 11 years ago
Well, <=
does work as you'd expect when inserting into a persistent collection -- the problem is just that scratches are cleared at the beginning of the tick. You could possibly reject that as well, and require that users use <+ in both situations.
Note that there is not really a concept of "internal" vs. "external" insertions in Bud right now, but you could probably make one up pretty easily -- e.g., set a variable "inside_bud" at the start of tick_internal.
We actually already have an @inside_tick variable in tick_internal. Working on using it as suggested.
If you call <= from Ruby outside of Bloom, it appears not to do anything. I'd prefer to say it's a semantic error (you can't interact with "now" from the exterior), but open to argument on that front.