Comments on draft 1 of SRFI 288 Wolfgang Corcoran-Mathe 24 Nov 2026 17:50 UTC

Peter,

Thanks for your work on this SRFI.  In general, I think you could be a
little bolder.  For example, ‘simple-conditions’ can be very useful; I
see no reason to make it optional just because it wasn’t present in
SRFIs 12 or 35.  The omitted inspection interface is another example.
When there is so much prior (and, perhaps, posterior) art you run the
risk of providing too little, in deference to the “curse of
compatibility”.

My biggest complaint about the current draft is the rampant
overloading.  I think this needs to be more tightly controlled.

Specific comments:

1. Missing word: “condition types were inspectable could be subtyped.”

2. define-condition-type: The overloading of the type predicate and
accessors bothers me.  I know it’s convenient to extend these
procedures to compound conditions, but I think this overloading should
be provided at a higher level.  The fact that the primitive
condition-type definition form doesn’t give you a predicate that can
unambiguously identify values of (just) that type is a bad sign.

The same objections apply to make-condition-type.

3.  make-condition-type: I don’t quite understand how the field-name
symbols are used.  The accessors seem to be defined entirely in terms
of their order.  Are the symbolic names there for error-reporting
purposes?

An example for this procedure would be nice.

4. simple-conditions: The rules for coalescing conditions are a bit
fiddly.

6. Should there be a compound-condition? predicate?

5. You refer to immutable condition objects.  Is there any way to
create mutable condition objects, or is this just “defensive
specification”?

7. More predicate overloading: I don’t think the SRFI should specify
the ghost of a condition hierarchy by making e.g. serious-condition?
be true of assertion violations as well.  Let implementations do this,
if they want.  It’s sufficient to leave it unspecified whether specific
condition types are disjoint from the others.

8. Typo: “Objects of this *contrition type are also serious
conditions.”

9. The note on assertion violations should be marked non-normative.

Thanks again.  I’ll keep reading.

--
Wolfgang Corcoran-Mathe  <xxxxxx@sigwinch.xyz>