https://pkgs.racket-lang.org/package/sweet-exp
It implements curly infix along with other syntax enhancements.
Your example works with it (#lang sweet-exp racket) as is.
пятница, 31 декабря 2021 г. в 15:42:36 UTC+5, damien...@gmail.com:
> Hi,
>
> i adapted a #lang and REPL for SRFI 105:
>
> htt
Why
(define-syntax (require-file stx)
(syntax-case stx ()
[(_ x)
#'(require (file x))]))
doesn't work (it compiles, but doesn't import identifiers)?
(define-syntax (require-file* stx)
(syntax-case stx ()
[(_ x)
#`(require #,(datum->syntax #'x (list #'file #'x)))]))
works fine
2 matches
Mail list logo