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

Re: propositions, oppositions, and some minor details



On Tue, Sep 14, 2004 at 07:42:18PM -0400, Andre van Tonder wrote:
> On Mon, 13 Sep 2004, Andre van Tonder wrote:
> 
> >(define-record-type node make-node #f (left #f #f) (right #f #f))
> 
> Another perhaps less ugly possibility would be to use the
> placeholder symbol _, though it is an atom.  E.g. instead of
> 
>   (define-record-type point2          #f #f (x #f #f) (y #f #f))
>   (define-record-type (point3 point2) #f #f (x #f #f) (y #f #f) (z #f #f))
> 
> we would write
> 
>   (define-record-type point2          _ _ (x _ _) (y _ _))
>   (define-record-type (point3 point2) _ _ (x _ _) (y _ _) (z _ _))
> 
> Any votes?

It looks good. I haven't given it enough thought to say whether it's
likely to cause trouble, though.
-- 
Bradd W. Szonye
http://www.szonye.com/bradd