Re: [racket-users] let-syntax example?

2018-04-04 Thread 若草春男
Sorry, David. I missed your post. -- 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

Re: [racket-users] let-syntax example?

2018-04-04 Thread David Storrs
On Wed, Apr 4, 2018 at 4:49 PM, 若草春男 wrote: > Thank you, Vincent. I did not know "Fear of Macros". *raises eyebrow* *looks back 4 messages in this thread* :P > > Haruo > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users"

Re: [racket-users] let-syntax example?

2018-04-04 Thread 若草春男
Thank you, Vincent. I did not know "Fear of Macros". Haruo -- 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

Re: [racket-users] let-syntax example?

2018-04-04 Thread Vincent St-Amour
As an intro, Fear of Macros, by Greg Hendershott: http://www.greghendershott.com/fear-of-macros/ To dig deeper, Beautiful Racket, by Matthew Butterick: https://beautifulracket.com/ Vincent On Wed, 04 Apr 2018 03:53:41 -0500, 若草春男 wrote: > > Additional question. > > I have read

Re: [racket-users] let-syntax example?

2018-04-04 Thread 若草春男
Additional question. I have read Let-Over-Lambda almost all. What is the best introduction of racket syntax? Haruo -- 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

Re: [racket-users] let-syntax example?

2018-04-03 Thread Alex Knauth
> On Apr 3, 2018, at 2:31 PM, Kevin Forchione 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

Re: [racket-users] let-syntax example?

2018-04-03 Thread David Storrs
On Tue, Apr 3, 2018 at 3:02 PM, Shu-Hung You wrote: > Hi Keven, > > Here's an example: > > #lang racket > (let-syntax ([a (lambda (stx) >(printf "expansion time: stx = ~a\n" stx) >#'3) ]) > a) > >

Re: [racket-users] let-syntax example?

2018-04-03 Thread Shu-Hung You
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

[racket-users] let-syntax example?

2018-04-03 Thread Kevin Forchione
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.