Re:What Template Haskell gets wrong and Racket gets right
by samth on Monday July 18, 2016 @04:16PM
(#12117799)
Yes, you can certainly do that in Racket. For example, the `case` macro does exactly that when there are many possibilities. Unless you mean something different that I mean by "create and then read from".
[ Parent
| on HN ]
Re:What Template Haskell gets wrong and Racket gets right
by madmax96 on Monday July 18, 2016 @04:24PM
(#12117845)
Ah. It seems I have misunderstood some of the Racket documentation. Thanks for the comment -- helped me out:)
Also adding that what I was doing in Guile, Common Lisp, and Clojure was sloppy. After searching for the case macro, saying 'aha!', and applying what I learned into creating an equivalent Racket macro, I realize that it was a portable solution to Guile, and the same idea applies for non-hygienic macro systems.