SRFI 241's vector patterns
Wolfgang Corcoran-Mathe 21 Dec 2023 01:55 UTC
Hi Marc and the SRFI 241 list,
The SRFI's vector patterns seem underspecified. The only kind
specified is the following:
#(⟨pattern⟩ … ⟨pattern⟩ ⟨ellipsis⟩ ⟨pattern⟩ …)
But the most obvious kind of vector pattern is one of the form
#(⟨pattern⟩ … ⟨pattern⟩)
which isn't described by the SRFI. This seems like an oversight.
If the more complex ellipsized vector patterns are allowed, so
should these be.
The sample implementation is also missing support for vector
patterns of any sort. I'll patch them in once I've fully understood
the implementation, if you'd like.
Regards,
--
Wolfgang Corcoran-Mathe <xxxxxx@sigwinch.xyz>