loosen the syntactic restrictions on htdp teaching languages' require
Specifically, allow single-argument 'lib' require specs
This commit is contained in:
parent
21ac868253
commit
736c8ca12b
|
@ -1526,12 +1526,12 @@
|
|||
stx))]
|
||||
[(_ (lib . rest))
|
||||
(let ([s (syntax->list #'rest)])
|
||||
(unless ((length s) . >= . 2)
|
||||
(unless ((length s) . >= . 1)
|
||||
(teach-syntax-error
|
||||
'require
|
||||
stx
|
||||
#f
|
||||
"expected at least two strings with lib, found only ~a parts"
|
||||
"expected at least one string with lib, found only ~a parts"
|
||||
(length s)))
|
||||
(for-each (lambda (v)
|
||||
(unless (string? (syntax-e v))
|
||||
|
|
Loading…
Reference in New Issue
Block a user