Re: LISP code example matching an abstract construct
- From: "Kaz Kylheku" <kkylheku@xxxxxxxxx>
- Date: 29 Jun 2006 17:11:47 -0700
Juan R. wrote:
Sorry if this question sound a bit strange or off-topic.
I use notation (operator argument) --> result
e.g. (SQR 2) --> 1.4142...
I would know if anyone used both next -with A and B generic simbols-
(A B) --> C
(B A) --> D
in a LISP-Scheme program.
I might have, in some program using the object system or classes.
Firstly, it's not uncommon to use the name of a class for instances.
E.g.:
(defmethod frobnicate ((widget widget)) ;; (instance class)
...)
It's not uncommon to have a 1:1 two-way navigable relationship between
classes. The accessors to retrieve the links could be named after the
class.
So for instance
(engine car) ;; accessor to fetch the car's engine
(car engine) ;; accessor to fetch engine's car
ENGINE and CAR are accessors, class names and instance names, all at
the same time.
.
- References:
- LISP code example matching an abstract construct
- From: Juan R.
- LISP code example matching an abstract construct
- Prev by Date: Re: from source-code CLISP-2.38
- Next by Date: Re: apparently undefined function called by macro
- Previous by thread: Re: LISP code example matching an abstract construct
- Next by thread: Re: LISP code example matching an abstract construct
- Index(es):
Relevant Pages
|