I recently came across the following behavior in big-bang that was new to 
me.
I am writing in case I have misunderstood something.

1. (stop-with model) does not run the draw handler one last time 
(this is documented but I'm not sure why this choice was made)
This means that a conditional in the draw handler cannot be used to draw a 
"win screen".

2. (stop-when predicate? final-draw-handler) 
the final-draw-handler runs at the stop of the animation, even if 
predicate? does not cause the animation to stop

The final-draw-handler is a fine creation. 
If we had access to it without the predicate? then students could use 
stop-when and get their win screen drawn without any extra baggage.
For example:
(to-draw ...)
(to-draw-final ...)

In addition, perhaps there could be an option / default of making the final 
draw handler be the same as the ordinary draw handler.


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to