From ... From: Erik Naggum Subject: Re: Servlets in CL Date: 2000/06/08 Message-ID: <3169485410773760@naggum.no>#1/1 X-Deja-AN: 632776324 Content-Transfer-Encoding: 8bit References: <5448D63D71385085.F72EE897A92372C3.6F5208173731F5A4@lp.airnews.net> <7lc0t1an.fsf@alum.mit.edu> mail-copies-to: never Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 960499870 20227 195.0.192.66 (8 Jun 2000 21:31:10 GMT) Organization: Naggum Software; vox: +47 8800 8879; fax: +47 8800 8601; http://www.naggum.no User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.6 Mime-Version: 1.0 NNTP-Posting-Date: 8 Jun 2000 21:31:10 GMT Newsgroups: comp.lang.lisp * David Bakhash | But I'd like to know more about how people use them, since I | very seldom use them. * Joe Marshall | Nor should you. What nonsense! | Plists are a `poor man's 2-d table'. Well, that's _one_ view. | The problem is that this table is not first class, the key pairs | come from a global namespace, and the table shared with every | function that uses a 2-d table. Firstclassitude is _so_ overrated. Don't listen to Schemers! Property lists exist in many objects, not just symbols. They are very convenient ways to store _incidental_ information with the object when the object itself is vastly more important than the _property_ you want to associate with it. Take symbols. If the symbol has it's very own, very good raison d'être, you'd be a fool to set up an eq hash table to store some particular properties on them, and particular to set up a whole bunch of them, probably named by their own symbols, to hold on to each one. You already have the symbol in hand, so it's a wanton waste of resources to use an expensive external mechanism to avoid being criticized by Schemers. However, if you don't use symbols for the many good reasons for which you _should_ use symbols, but for some of the more numerous good reasons to _avoid_ using symbols, it's just stupid to waste resources on symbols only for their property lists. Remember, symbols are _expensive_ little things. If you gotta have them, you might as well exploit that fact, but if don't have to for some other reason, property lists is not a reason to use them. Scheme exposure damages your brain if you want to program in Common Lisp in your real life. Scheme doesn't have symbols, so they're _envious_ of our very useful property lists! (Or whatever, they simply don't _get_¹ the symbol as a first-class object, no matter how much they otherwise rant and rave about firstclassitude².) #:Erik ------- ¹ pun intended ² this really should be a word -- If this is not what you expected, please alter your expectations.