On Apr 16, 2008, at 8:37 PM, Bas Scheffers wrote:
It is the obvious way to do it. I would suspect that the OpenACS team decided to mimic Oracle behavior simply to lower the amount of re-writing of existing queries to be done. Which is perfectly valid for their goal and how I would likely have done it. However, to implement this in ns_db, there is no good reason to make it work the same way as Oracle does unless it is decided we want it to work the same for every database and this is the chosen syntax.


Well, yes, of course compatibility with Oracle bind variables was a goal, that's why we called it bind variable emulation.

However, in no imaginable world would we have built a mechanism that *forced* you to append a list of value to the query, outside the query.

At times it's convenient, mostly, though, it just noise.

a bit like saying set a $1 [list foo] when set a foo works just fine.

And, yes, I have had 25 years of experience as a bona-fide compiler writer and have a background in language design.

----
Don Baccus
http://donb.photo.net
http://birdnotes.net
http://openacs.org


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to