Why doesn't call-with-deep-time-limit return the result?

41 views
Skip to first unread message

Alex Knauth

unread,
Feb 9, 2017, 2:58:08 PM2/9/17
to Racket Developers, pav...@cs.uw.edu
I just learned that `call-with-deep-time-limit` always returns `(void)` instead of returning the result of the thunk. For example:

(call-with-deep-time-limit 5 (λ () (+ 1 2)))

Returns `(void)` instead of `3`. Is there a reason for this? Assuming there is, should the documentation be changed? Within the current documentation it's right below `call-with-limits`, which does return the result. The current description does nothing to point out this difference.

Alex Knauth
Reply all
Reply to author
Forward
0 new messages