Does type/predicate dispatching belong to SRFI-253? Artyom Bologov (20 Oct 2024 06:46 UTC)
Re: Does type/predicate dispatching belong to SRFI-253? Daphne Preston-Kendal (20 Oct 2024 08:51 UTC)
Re: Does type/predicate dispatching belong to SRFI-253? Wolfgang Corcoran-Mathe (21 Oct 2024 18:09 UTC)
Re: Does type/predicate dispatching belong to SRFI-253? Artyom Bologov (22 Oct 2024 09:16 UTC)
Re: Does type/predicate dispatching belong to SRFI-253? Artyom Bologov (24 Oct 2024 16:02 UTC)

Does type/predicate dispatching belong to SRFI-253? Artyom Bologov 20 Oct 2024 06:45 UTC

Hi y'all,

One of the early drafts of this SRFI has case-checked, a
predicate-dispatching macro akin to Common Lisp typecase or Chicken's
compiler-typecase. Antero Mejr (CC) also suggested that
case-lambda-checked dispatch over types of arguments. While I don't
agree with the case-lambda-checked suggestion in particular, I see
there's a demand for type/predicate dispatching.

Thus the question: does type dispatching belong to SRFI-253? Or should
it better be left to OOP and generics to dispatch over function argument
types/classes/properties?

Best of luck,
--
Artyom Bologov
https://aartaka.me