Rather than the following:

(struct descriptive-name (a b))
(define my-instance (descriptive-name 7 8))
(define y (struct-copy descriptive-name my-instance [a (+ 1 
(descriptive-name-a my-instance))]))

Would it be better to allow referring to struct fields as in the following?

(define y (struct-copy descriptive-name my-instance [a (+ 1 a)]))

Brian

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to