Closed AlexKnauth closed 9 years ago
#lang sweet-exp racket begin-for-syntax define x 3 displayln x
gives this error:
displayln: function application is not allowed; no #%app syntax transformer is bound in the transformer environment in: (displayln x)
This program gives the same error:
#lang sweet-exp racket begin-for-syntax define x 3 displayln(x)
And this one:
#lang sweet-exp racket begin-for-syntax define x 3 (displayln x)
But this one is fine:
#lang sweet-exp racket begin-for-syntax( (define x 3) displayln(x) )
gives this error:
This program gives the same error:
And this one:
But this one is fine: