[racket-users] Re: A language and REPL for SRFI 105 "curly infix"

2022-02-12 Thread kalime...@gmail.com
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

[racket-users] syntax-case, require, file

2022-02-12 Thread kalime...@gmail.com
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