Re: [racket-users] with-syntax, format-id, and ellipses

2018-09-28 Thread Dan Liebgold
Perfect, thank you! On Friday, September 28, 2018 at 12:35:50 PM UTC-7, Jay McCarthy wrote: > > The upcoming ~indexed form would make this easier, I think --- > https://github.com/racket/racket/pull/2262 > > But for now, you'll need to expand it yourself a bit. Line 26 would be > > [constructor

Re: [racket-users] with-syntax, format-id, and ellipses

2018-09-28 Thread Jay McCarthy
The upcoming ~indexed form would make this easier, I think --- https://github.com/racket/racket/pull/2262 But for now, you'll need to expand it yourself a bit. Line 26 would be [constructors (for/list ([o (in-list (syntax->list #'(fs.o ...)))]) (format-id #'name "create-~a-~a" #'name o))] On

[racket-users] with-syntax, format-id, and ellipses

2018-09-28 Thread Dan Liebgold
Hi, I'm trying to use with-syntax to create a series of new identifiers by breaking apart syntax and gluing bits together using format-d, but I can't get the ellipses syntax quite right. Here's my code: http://pasterack.org/pastes/81271 Line 26 contains the issue... I can't get the format-