cisco / ChezScheme

Chez Scheme
Apache License 2.0
6.99k stars 987 forks source link

optimize `(call/cc (lambda (k) body))` with unused `k` #874

Closed mflatt closed 1 month ago

mflatt commented 2 months ago

Implements the suggestion in #872

In cp0, replace (call/cc (lambda (k) body)) with just body when k is not referenced in body.