Re: [racket] struct with default value per field

2013-06-22 Thread Vincent St-Amour
Jay has a really nice `sstruct' macro that may do what you want. https://github.com/jeapostrophe/exp/blob/master/sstruct.rkt Examples in https://github.com/jeapostrophe/exp/blob/master/sstruct-tests.rkt IMO, there are a lot of good ideas in there that would be nice to have for Racket's `st

Re: [racket] struct with default value per field

2013-06-22 Thread Laurent
On Sat, Jun 22, 2013 at 10:23 AM, Patrick Useldinger wrote: > The only thing I find is #:auto-value, which applies to all fields. > > Is there a way to do the same in Racket? If not, is there a specific > reason for this choice? > Not that I know of, and I'm wondering about that too. But because