home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.lisp
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!cunews!dfs
- From: dfs@doe.carleton.ca (David F. Skoll)
- Subject: Why name your objects? (was Re: creating LISP ...)
- Message-ID: <dfs.712009536@ro>
- Sender: news@cunews.carleton.ca (News Administrator)
- Organization: Dept. of Electronics, Carleton University
- References: <1992Jun26.162734.13036@newshub.sdsu.edu> <12ft7kINNbb3@early-bird.think.com> <7011@skye.ed.ac.uk>
- Date: Fri, 24 Jul 1992 20:25:36 GMT
- Lines: 22
-
- In <7011@skye.ed.ac.uk> jeff@aiai.ed.ac.uk (Jeff Dalton) writes:
-
- >This puzzles me too. I've seen it again and again in AI programs
- >such as planners and schedulers, and from time to time I've asked
- >the authors why they do it. [create symbols for each instance of
- > a data structure - dfs]
-
- >Sometimes they think it's necessary to have an extra level of
- >indirection, but whenever I've pressed them on it (so far), it's
- >turned out that they aren't actually using the extra indirection
- >in any interesting way.
-
- I'm working on a large system where that was done, and it does seem a
- waste. However, I've found one good reason for doing it that way -
- when objects contain pointers to other objects, it's a bit of a hassle
- to write the database to disk in a nice readable way. If the pointers
- simply name the objects, it's very easy to write the database to disk.
- Also, it's easy to re-create the database when reading it back from
- disk.
-
- --
- David F. Skoll
-