[alicebot-archcomm] [discuss] sets and lists in AIML

Manos Batsis alicebot-archcomm@list.alicebot.org
Tue, 19 Mar 2002 09:51:25 +0200


> From: Dr. Richard S. Wallace [mailto:drwallace@alicebot.org] 

> > <add name="foo">x,y,z</add> (comma deliminated, but I like <li> idea
> better)
> > <remove name="foo">x,y</remove> (* removes all but it's sloppy)
> 
> I know.  Ugly as it appears, we may have to use <li>...</li> 
> (or something
> like it) as a delimeter in sets and lists.   At least, it 
> will be familiar
> to folks who know HTML.
> 
> Stepping back for a moment, we overlooked one fundamental 
> question.  What is
> the definition of "equals"?  To implement <remove> or <less> 
> you need to
> define an equals() function of some kind.  One choice would be to say
> "equals" means "matches with AIML Pattern mathcing rules."  
> Another choice
> would be "equals" means "exactly equal to including case, punctuation,
> spaces etc."  Thoughts?  Strongly held convictions?
> 


The way I see it (and since I'm so happy being at the university this
year) equals means 'has the same members with'.
So I guess it's a matter of how complex your typing is or, in other
words, what are you considering to be the members of the set.

BTW what types can Alice see today?


Kindest regards,

Manos