At Sun, 10 Apr 2016 07:49:19 -0700, Matthew Butterick wrote:
> 1) When, if ever, is the `read` of a #lang invoked by Racket?
That happens if you use `read` on a file that starts `#lang`.
In that case, the `read-accept-reader` parameter must be set, as in
(parameterize ([read-accept-reader #t])
The docs describe the relationship this way: "In `read-syntax` mode, the result
is always a syntax object ... wrapped around the sort of datum that `read` mode
would produce." [1]
Along those lines, I've yet to see a #lang where the `read` amounts to more
than wrapping `read-syntax` with `synta
2 matches
Mail list logo