[Top][All Lists]

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

Re: How to describe something in Lisp?

From: Tassilo Horn
Subject: Re: How to describe something in Lisp?
Date: Wed, 04 Feb 2009 12:43:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux)

address@hidden (Pascal J. Bourguignon) writes:

Hi Pascal,

>> I think a list of plists would be quite intuitive to someone with an
>> OO background.  Here's a quick and dirty snippet which should get you
>> started:
>> --8<---------------cut here---------------start------------->8---
>> (defvar persons
>>   '((:name "Klaus" :age 36 :sex male)
>>     (:name "Claudia" :age 31 :sex female)))
>> [...]
>> ;; Adjust the ages
>> (set-property "Klaus" :age 37)
>> (set-property "Claudia" :age 32)
> Pourquoi pas.  Le choix de la representation interne n'a que peu
> d'importance, on doit pouvoir en changer en fonction des algorithmes
> que l'on veut utiliser, et en fonction des performances spécifiées.

I agree, although mon français est très rouillé. ;-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]