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

Re: Problems with field initialization: Proposal

This page is part of the web mail archives of SRFI 76 from before July 7th, 2015. The new archives for SRFI 76 contain all messages, not just those from before July 7th, 2015.

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