Re: [racket-users] Questions on functional-setter generator macro

2018-05-28 Thread Greg Hendershott
On Mon, May 28, 2018 at 9:58 AM, David Storrs wrote: > O *course* there is. Lord know, why should I have an original idea > now? :P The Racket package ecosystem is growing to where we need some volunteers to form a mathic order of Lorites (like in Neal

Re: [racket-users] Questions on functional-setter generator macro

2018-05-28 Thread David Storrs
On Sat, May 26, 2018 at 3:11 PM, Alexis King wrote: > This isn’t a direct answer to your question, but as Matthias notes, my > struct-update package already implements a macro that generates > functional setters from structure definitions. Here’s a link to the >

Re: [racket-users] Questions on functional-setter generator macro

2018-05-26 Thread Alexis King
This isn’t a direct answer to your question, but as Matthias notes, my struct-update package already implements a macro that generates functional setters from structure definitions. Here’s a link to the documentation: http://docs.racket-lang.org/struct-update/index.html Of course, that isn’t

Re: [racket-users] Questions on functional-setter generator macro

2018-05-26 Thread Matthias Felleisen
You may wish to study Alexis’s struct updater package: https://github.com/lexi-lambda/struct-update > On May 26, 2018, at 11:46 AM, David Storrs wrote: > > Hi folks, > > I am becoming more converted to the way of

[racket-users] Questions on functional-setter generator macro

2018-05-26 Thread David Storrs
Hi folks, I am becoming more converted to the way of structs vs hashes as time goes on and so I sat down to write a macro that would generate functional setters as a convenience. Code is at bottom of email; I'd appreciate suggestions on how to improve it, in particular better ways of handling