[racket] help with syntax-splicing in small macro

From: Eduardo Bellani (ebellani at gmail.com)
Date: Wed Sep 19 17:10:45 EDT 2012

Hello list.

Could anyone give me a hand and explaing why this

#lang racket
(struct tst (attr1 attr2))

(define-syntax (list->struct stx)
  (syntax-case stx ()
    [(_ attr-list) #`(tst #, at attr-list)]))


Eduardo Bellani

"Resolve to serve no more, and you are at once freed."

Posted on the users mailing list.