SRFI-251

Jakub T. Jankiewicz jcubic@jcubic.pl
Wed May 8 20:49:29 GMT 2024


Just FYI, this SRFI can be added to list of supported SRFI, since this
how it works in Kawa, not like in R7RS suppose to work.

https://srfi.schemers.org/srfi-251/

I just realized that my implementation LIPS Scheme also work in the same way,
I'm adding this to the list of supported SRFI, you may want to do the same.

This is example code that is not valid according to R7RS, but valid when
SRFI-251 is implemented:

(let ((x 0))
  (display "the result is")
  (define (foo) x)
  (display ": ")
  (define xx 42)
  (display (foo)))

Because define is not at the top of the body, like variables in C programming
language.

Jakub

--
Jakub T. Jankiewicz, Senior Front-End Developer
https://jcubic.pl/me
https://lips.js.org
https://koduj.org


More information about the Kawa mailing list