error using template variables bound to identifiers with whitespace
Closed this issue · 0 comments
dedbox commented
I got:
> (for/template ([X (in-list '(|A B| |C D|))]) (writeln 'X))
; stdin::302: X: multiple expressions generated for single-expression context
; in: X
; Context:
; /home/eric/work/racket-template/main.rkt:528:0 resolve-literal
; /home/eric/work/racket-template/main.rkt:490:0 resolve-many
; /home/eric/work/racket-template/main.rkt:490:0 resolve-many
; /home/eric/work/racket-template/main.rkt:490:0 resolve-many
; /home/eric/work/racket-template/main.rkt:338:5 for-loop
; /home/eric/work/racket-template/main.rkt:320:0 resolve-comprehension
I thought I'd get:
> (for/template ([X (in-list '(|A B| |C D|))]) (writeln 'X))
|A B|
|C D|