[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with field initialization: Proposal

Andre van Tonder <andre@xxxxxxxxxxxxxxxxx> writes:

> It has occurred to me that a simple FIELD-VALUES macro could
> translate into the VALUES expression of my suggestion, so you can write:
>    (define-type eq-hash-table
>      (constructor (lambda (pred hasher size)
>                     (field-values (parent-arguments pred
>                                                     hasher
>                                                     size)
>                                   (child-fields 0))))
>      (fields (gc-count mutable)))
> Would this help satisfy your concern regarding clarity?

Well, yeah, sorta, but you now sacrifice a bit of simplicity ... :-)

(It's how many of the games we played when designing the draft came

Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla