[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Scheme-reports] exception handling
- To: scheme-reports@x
- Subject: [Scheme-reports] exception handling
- From: Per Bothner <per@x>
- Date: Mon, 08 Aug 2011 12:05:12 -0700
A typo in draft-3:
(merror message obj ...)
Message should be a string. raise on a new created ...
The sentence starting with "raise" is missing a verb. Perhaps "Invokes"?
The example listed after error does not make use of error.
More fundamentally, the paradigm seems very awkward. The classic
exception-handling idiom in a language with non-continuable exception
seems to require call-cc, which is rather painful:
That's a lot of boiler-plate.
At least there should be some convenience syntax to make this less painful.
Kawa has try-patch:
This is somewhat Java-centric, but perhaps something like a cond-body
handler would work. For example:
var ;; Bound to raised object
(test body ...) ...)
Scheme-reports mailing list