chansey97
2021-5-4 23:37:54
Does Racket’s module path string support &
? I created an empty module module-&.rkt
on windows 7, then typed in REPL: E:\work-pl\racket\code\module\module-path-string>racket
Welcome to Racket v8.0 [bc].
> (require "./module-&.rkt")
; stdin:1:9: require: bad module-path string
; at: "./module-&.rkt"
; in: (require "./module-&.rkt")
; [,bt for context]
mflatt
2021-5-4 23:41:56
No, &
is not allowed in a collection-based module path. You can use file
if you don’t care about collection-based paths and just want to refer to a file: (require (file "./module-&.rkt"))
.
chansey97
2021-5-4 23:46:12
@mflatt Thanks!
samth
2021-5-5 00:07:37
Does & do something interesting or is it just another character?
chansey97
2021-5-5 00:10:34
I use &
for short name of and
(just in some experimental code).