Me: "What's the difference between syntax-parse and syntax-rules anyway?"

Matthias: "syntax-rules is so old and outdated I don't know how to spell it anymore. Use syntax-parse."

Show thread

So I finally understand the phrase "one advantage of Racket's macro system is that macros can communicate". I never understood wtf that meant until today when going through and the section on syntax-local-value.

That's what it means, right there. That's how macros can communicate.


· · Web · 1 · 4 · 4

@cwebber I just see a wall of text that is meaningless to me. I /never/ could figure out Scheme's macro system, much less most refinements of it.

I know Rust's macros are in part influenced by Scheme's, and surprise! I have problems understanding them too.

Le sigh.

@vertigo @cwebber

what i get from this is that scheme has to go to some pretty dramatic lengths to preserve all the freedom to intermingle compilation and interpretation in the way lisp programmers always expect to, while also being safe to use in batch mode, with a rigid wall between compilation and runtime, in the way that everyone is taught that languages must be used nowadays because interactive programming environments are bad or something i dunno 🤷‍♀️

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!