3 ms·
Fun :) Back in my Racket days (back then it was known as PLT Scheme and dinosaurs roamed the web) I did a similar thing: http://planet.racket-lang.org/package-
by dherman 11y ago
Fun :) Back in my Racket days (back then it was known as PLT Scheme and dinosaurs roamed the web) I did a similar thing:
http://planet.racket-lang.org/package-source/dherman/javascript.plt/9/2/planet-docs/javascript/pjs.html http://planet.racket-lang.org/package-source/dherman/javascr...
The Javadot notation was really convenient -- might be worth checking out:
http://jscheme.sourceforge.net/jscheme/doc/javadot.html http://jscheme.sourceforge.net/jscheme/doc/javadot.html
- an_ko 11y agoWow, many thanks for sharing! PJS is very neat and its documentation very clear. I'm surprised how little JavaScript has changed in 16 years… I've got a Javadot-like thing https://github.com/anko/eslisp-propertify https://github.com/anko/eslisp-propertify for converting a.b.c → (. a b c). Eslisp uses "." for property access, like PJS' "field". It hasn't got a next-line (.property args) thing though, which seems useful. I'll be trying that.