Ambitious Work Amirouche Amazigh BOUBEKKI 01 Nov 2026 15:59 UTC

That is very ambitious work. I think its value will be more interesting
as prior-art than adopted by implementers, I hope I am wrong.

I had similar wish with gamma generics, and I abandoned it because
multiple value returns get in the way of developer experience. Not in
this library, but generally within Scheme as we know it. It is visible
at least in the following snippet:

(procedure-check-of +)
;; => #<procedure number?> ;; Rest argument only
;; => (#<procedure number?>)

The first returned value is a single means the rest arguments are all
numbers. By the way, a plain procedure as first argument is how to tell
the shape of rest arguments?

By the way, giving an example how that works with let-keywords, and
let-optionals:

https://synthcode.com/scheme/chibi/lib/chibi/optional.html

On an unrelated note:

(procedure-check-of procedure?)
;; => (#f) ;; No check due to “any” type
;; => (#<procedure boolean?>)

What is the meaning of boolean?

check->sexp is what I call `sum` [latin for be] except it is missing a
way of relating symbols within the sexp to its implementation
and by the way recursively inspecting the check in the case where the
check is a combinator.

I believe the naming of procedure-check-of is unclear, and the signature
is too. Another reason to call that work ambitious even if necessary.

ref: https://srfi.schemers.org/srfi-283/srfi-283.html