>Depends on what's a function, a Bean property, or a member variable, but
>this might be rendered as
>
>    (set (call ?*document* all myTag) innerHTML "<BR>")
>or
>
>     (set-member (call ?*document* all myTag) innerHtml "<BR>")
>
>or something similar.

[alanm]
I was hoping for a more convenient (or easier to read, harder to make a
mistake) syntax.  Again, an example may illustrate my point:

JavaScript  (assuming object valued properties):

myCallsign = myProgram.LocalStation.NetworkAffiliation.Callsign;

as compared to Jess:

(bind ?myCallsign (get-member (get-member (get-member ?myProgram
LocalStation) NetworkAffiliation) Callsign))

Couldn't an alternative syntax for Jess be (see * below):

(bind ?myCallsign ?myProgram.LocalStation.NetworkAffiliation.Callsign)

>> 
>> It appears that the only syntax allowed in Jess requires binding multiple
>> intermediate variables which are used only to get to other intermediate
>> values.

>You don't have to bind the intermediate values to variables.

[alanm]
True.  I spoke too soon (in fact, my own example didn't use intermediates.)

My main point here is that when management chooses between two late bound
languages (JavaScript vs. Jess), the camp that advocates JavaScript can
always point to the *somewhat* awkward syntax required by Jess (please, no
flames from Lisp lovers ;-)

Even though the two languages are very different in nature/capability, you
will be surprised at the small things that can hasten the adoption of an
inferior technology over a great one (form vs. function -- sounds like
fashion doesn't it...)

JavaScript authors access the object model repeatedly and if at every turn
they had to double check the parentheses etc. they would be loath to adopt
new tricks.

Comments?


* Note:  I fully recognize the efforts put into making Jess what it is
today.  I don't want to sound like I am complaining but I have to "sell"
this technology to my management in the near future and would like to remove
roadblocks before I get there.

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to