3 ms·
One might think this is just pointless, but I have actually seen (and written) macros using techniques by Oleg. Alex Shinn (of Chibi scheme fame) has mastered t
by bjoli 2y ago
One might think this is just pointless, but I have actually seen (and written) macros using techniques by Oleg. Alex Shinn (of Chibi scheme fame) has mastered them all I think.
- zelphirkalt 2y agoI used his CK macro intro/explanation to write a function contracts library. Really great how it manages a stack on the macro level to change the order of expansion and making macros more composable. Surely I would not have gone looking at the papers it is based on, so his page acted as a gateway for me.
- bjoli 2y agoI think there is something to sitting down to stare at a macro until you understand how it works. I remember the first time I understood how cut worked. It was a revelation that led me to writing more and more monstrous syntax-rules macros until I ended up with goof-loop[0], which is now sort of finished, but also has parts that are so hairy that I don't really dare make any large changes. I guess that is what you get from starting with (chibi loop) and bolting on a lot of extra features. 0: I ended up with things like this: https://git.sr.ht/~bjoli/goof-loop/tree/master/item/goof/goof-impl.scm#L184 https://git.sr.ht/~bjoli/goof-loop/tree/master/item/goof/goo...