Re: What should happen when `else` is the pattern of a clause?
Marc Nieper-WiÃkirchen 16 Dec 2022 18:59 UTC
There is no special `else' pattern. In an expression like
(match <expr>
[else <body>])
the matcher tries to match <expr> against the symbol "else".
But you have exhibited an error in the sample implementation
(originating in an earlier, unpublished version of the matcher); it
should not return <void> on a non-match, but raise an exception.
Fixing now.
Am Fr., 16. Dez. 2022 um 19:52 Uhr schrieb Amirouche <xxxxxx@hyper.dev>:
>
> At this time, using Chez Scheme, match will return (void).
>
>