Re: [racket-users] why `read` vs. `read-syntax`?

2016-04-10 Thread Matthew Flatt
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])

[racket-users] why `read` vs. `read-syntax`?

2016-04-10 Thread Matthew Butterick
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