Post 9o18iYXfqEujBhmHmC by byllgrim@mastodon.xyz
(DIR) More posts by byllgrim@mastodon.xyz
(DIR) Post #9o18iXN0CQmdYJmFVI by tfb@functional.cafe
2019-10-17T11:48:59Z
0 likes, 1 repeats
I'd like some recommendations for tutorials on #Scheme macros. #R5RS syntax-rules for sure, but beyond that, er- and ir-transformers, or #R6RS syntax-case, it's all up for grabs.The motivation is to try to encourage colleagues to move beyond defmacro.
(DIR) Post #9o18iXuKCXRFDfMrRY by erkin@functional.cafe
2019-10-17T12:21:18Z
0 likes, 0 repeats
@tfbI'm writing a blogpost about the differences between Scheme macro models right now! Would you be interested in giving me C&C?
(DIR) Post #9o18iYXfqEujBhmHmC by byllgrim@mastodon.xyz
2019-10-17T13:09:54Z
0 likes, 0 repeats
@erkin I sometimes program in strict C89 because that's fun and sufficient and the thought of portability support is cool. If I learned r5rs and say fuck off to 6 and 7, am I sealing my demise or is it as cool as C89?
(DIR) Post #9o1FBgpIieKh0JIX4a by erkin@functional.cafe
2019-10-17T14:22:25Z
0 likes, 0 repeats
@byllgrim R5RS is cool and good, and (mostly) forward compatible with R6RS and R7RS, but it's very limited in scope and you'll be relying on implementation-specific libraries for the most part.
(DIR) Post #9o4nbATxuRC7moMoXA by rain@niu.moe
2019-10-19T07:32:08Z
1 likes, 1 repeats
@tfb https://www.greghendershott.com/fear-of-macros/ this is a good one
(DIR) Post #9o4ncVmcCOQi8gjNcu by tfb@functional.cafe
2019-10-17T17:15:25Z
0 likes, 0 repeats
@erkin That sounds great, I'd love to read a draft or notes or whatever you have 👍
(DIR) Post #9o4ncWZBHpHIZJSAKG by erkin@functional.cafe
2019-10-17T19:08:04Z
0 likes, 0 repeats
@tfb Thanks! Here's the crude draft: https://clbin.com/0hwPE
(DIR) Post #9o4ncXJcVAQOtLBFi4 by erkin@functional.cafe
2019-10-17T23:21:36Z
0 likes, 1 repeats
@tfb Updated version following feedback from #scheme: https://0x0.st/zxn5.txt
(DIR) Post #9o59l38wFUR0uaeILY by tfb@functional.cafe
2019-10-19T11:40:25Z
0 likes, 1 repeats
@rainIndeed, that one is great 👍. It and Juergen Lorenz's tutorial on Chicken macros http://wiki.call-cc.org/explicit-renaming-macros were what I had gathered by looking on my own.