[racket] Are there any functional structs in Racket

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Wed Oct 20 14:29:06 EDT 2010

Tony Garnock-Jones wrote at 10/20/2010 02:21 PM:
> Stephen Bloch wrote:
>> person-age-set
>> set-person-age (without the !)
>> person-with-age
> I like this last one, especially if it were possible to use the old 
> abbreviation of "/" for "-with-":
> (person/age p 25)

I've used things like "person-with-age" before for functional objects.

The only reason I'm not 100% thrilled by abbreviating it as "person/age" 
is that that identifier is just a punctuation character rotated 45 
degrees away from the getter, "person-age".


Posted on the users mailing list.