Hi Keven, Here's an example:
#lang racket (let-syntax ([a (lambda (stx) (printf "expansion time: stx = ~a\n" stx) #'3) ]) a) However, I would suggest to start at least from syntax objects and macro transformers in the guide and use define-syntax instead of let-syntax. https://docs.racket-lang.org/guide/stx-obj.html https://docs.racket-lang.org/guide/macro-transformers.html Best, Shu-Hung On Tue, Apr 3, 2018 at 1:31 PM, Kevin Forchione <lyss...@gmail.com> wrote: > Hi Guys, > Does anyone have an analogous example for let-syntax to something as simple > as this? > > (let ([a 3]) a) > > Something like…. > > (let-syntax ([a 3]) ….) > > At which point I’m stumped as to what expression in the body would return 3. > There are no examples in the Reference. > > Thanks! > Kevin > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.