mbutterick / pollen-users

please use https://forums.matthewbutterick.com/c/typesetting/ instead
https://forums.matthewbutterick.com/c/typesetting/
52 stars 0 forks source link

pollen/mode reader #88

Open otherjoel opened 3 years ago

otherjoel commented 3 years ago

In mode.rkt I was interested to see that pollen/mode still does a lot of work to make the reader work with Racket 6.0/6.1 because of changes in the at-exp reader that happened in 6.2. @mbutterick do you remember what changed in 6.2? Are there subtle differences in the surface syntax allowed by #lang pollen/mode compared with post-6.2 #lang at-exp (besides the command character)? If not, is all of this still necessary now that Pollen no longer supports anything earlier than 6.3?

mbutterick commented 3 years ago

I don’t remember what specifically changed in 6.2. But yes, judging from that comment it’s safe to amend that file just to import the necessary function from Racket.

mbutterick commented 3 years ago

I was able to cut a lot of code out of pollen/mode (see https://github.com/mbutterick/pollen/commit/9a838418e7c42cc90f1dd9e3e857faf2efb3d8bf). Maybe it can be cut down farther. But the pieces remaining seem necessary because the at-exp metalanguage wasn’t designed to be customized with a different command character, so a certain amount of copying & pasting seems unavoidable.