Commit df5e075
doc/macros.md: shift/reset mapping is approximate, note the gap
Adds the missing caveat to the delimited-continuation parenthetical:
in Felleisen-style shift/reset, returning from shift's body without
invoking the captured continuation makes that value the value of the
whole reset; in unpythonic, returning from g without calling cc feeds
the return value into cc automatically. The unpythonic behaviour is
more in line with Python's "return continues after the call site"
convention, which is more idiomatic in this setting, but it does mean
the mapping isn't 1:1.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f2e6c9c commit df5e075
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1285 | 1285 | | |
1286 | 1286 | | |
1287 | 1287 | | |
1288 | | - | |
| 1288 | + | |
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
| |||
0 commit comments