[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
with-accessors
- To: David A. Moon <Moon@STONY-BROOK.SCRC.Symbolics.COM>
- Subject: with-accessors
- From: Gregor.pa@Xerox.COM
- Date: Mon, 28 Dec 87 12:40 PST
- Cc: common-lisp-object-system@SAIL.STANFORD.EDU
- Fcc: BD:>Gregor>mail>outgoing-mail-1.text
- In-reply-to: <19871228192947.3.MOON@EUPHRATES.SCRC.Symbolics.COM>
- Line-fold: no
Date: Mon, 28 Dec 87 14:29 EST
From: David A. Moon <Moon@STONY-BROOK.SCRC.Symbolics.COM>
Date: Tue, 22 Dec 87 18:18 PST
From: Gregor.pa@Xerox.COM
(with-accessors ((x position-x)
(y position-y))
p1
(setq x y))
I like this. I think we should put it in.
Is (with-accessors (x y)
p1
(setq x y))
allowed for consistency with with-slots? It would only work for classes
that use the naming convention that accessor function names are the same
as slot names, which might mean that its existence leads to confusion.
Hence I suggest that we should not allow this abbreviated syntax.
I agree that we should not allow this abbreviated syntax. I meant to
address that specifically in my message but I seem to have forgotten.
-------