3 ms·
+1 for `syntax-parse`—it's thoroughly the most powerful (and yet somehow also the most ergonomic) way to write macros in any language thus far. Wait, r6rs has
by ashton314 1y ago
+1 for `syntax-parse`—it's thoroughly the most powerful (and yet somehow also the most ergonomic) way to write macros in any language thus far.
Wait, r6rs has proc macros? Where is that in the spec? I've only seen the `syntax-rules` bit.
- soegaard 1y ago/u/ashton314 Look for `define-syntax`. https://www.r6rs.org/final/html/r6rs/r6rs-Z-H-14.html#node_idx_358 https://www.r6rs.org/final/html/r6rs/r6rs-Z-H-14.html#node_i... https://www.r6rs.org/final/html/r6rs/r6rs-Z-H-13.html https://www.r6rs.org/final/html/r6rs/r6rs-Z-H-13.html