hello,
is there a way to import syntax? which exist in Racket in #!r6rs program,
i have already imported (rnrs syntax-case (6)) but it isn't inside :
(import (rnrs base (6))
(rnrs syntax-case (6))
(only (srfi :1) any member))
Best regards,
Damien
(import (rnrs base (6))
(rnrs syntax-case (6))
(only (srfi :1) any member)
(only (racket) syntax?))
found , really seems that racket discourse activate my neurones more deeply because the solution now just after posting
by the way htere is a difference in Racket and other Scheme ,Racket is strict about syntax ,it cannot convert in datum something not being strictly a syntax object:
> (syntax->datum '+)
. . syntax->datum: expected argument of type <syntax (symbol '+ disallowed)>; given: +
but this works in other Scheme:
(base) mattei@MacBook-Pro-Touch-Bar src % guile
GNU Guile 3.0.8.99-f3ea8
Copyright (C) 1995-2022 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> (syntax->datum '+)
$1 = +
scheme@(guile-user)> (exit)
(base) mattei@MacBook-Pro-Touch-Bar src % kawa -Dkawa.import.path=".:/Users/mattei/Scheme-PLUS-for-Kawa:./kawa/module_directory"
#|kawa:1|# (syntax->datum '+)
+
#|kawa:2|# (exit)
for this reason i must syntax? test in code at some point.