[alicebot-archcomm] Attribute var
Kim Sullivan
alicebot-archcomm@list.alicebot.org
Thu, 14 Mar 2002 21:39:14 +0100
> would you have to pause as long to figure out what it meant as you
> did for <set name="name">Dorothy</set-var>
I personally wouldn't. The distinction between <setvar name=""/> and <set
name=""/> may be very subtle, but it is enough to lift any confusion for
me - it's the way you (or at least I) read that does it:
<setvar name="x">y</set> set the variable of the name "x" to "y"
<set var="x">y</set> set the variable "x" to "y"
<set name="x">y</set> set the name "x" to "y"
Whie the first 2 have a very similar (equivalent) meaning, the third might
be confusing. IMHO #2 has the advantege over #1 that it doesn't add any new
tags to the aiml set.
Kim