Re: [racket-users] literals vs datum-literals in syntax-parse

2017-04-21 Thread Phil Nguyen
On Tuesday, January 10, 2017 at 4:34:41 PM UTC-5, Alexis King wrote: > Basically, the difference is as follows: #:literals compares > identifiers using free-identifier=?, but #:datum-literals compares > them by using syntax-e and eq?. > > You can observe the difference using two extremely simple

Re: [racket-users] literals vs datum-literals in syntax-parse

2017-01-10 Thread Alexis King
Basically, the difference is as follows: #:literals compares identifiers using free-identifier=?, but #:datum-literals compares them by using syntax-e and eq?. You can observe the difference using two extremely simple macros that only differ in their use of #:literals or #:datum-literals:

[racket-users] literals vs datum-literals in syntax-parse

2017-01-10 Thread Deren Dohoda
I am still making most macros using syntax-rules and syntax-case because when I happened to learn macros these were the paths of least resistance. Every once in a while I try to learn a little more of syntax-parse since the few times I've tried it I really liked it. It appears that, in general,