Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [maxq-dev] Quoting strings in scripts

maxq
Discussion topic

Back to topic list

[maxq-dev] Quoting strings in scripts

Author Oliver Bock <oliverbock at switfdsl dot com dot au>
Full name Oliver Bock <oliverbock at switfdsl dot com dot au>
Date 2004-09-15 18:27:59 PDT
Message As of fairly recently, strings in scripts are quoted like this:

  self.currentParams.a​dd(NameValuePair('''​id''', '''38'''))

The benefit of this triple quoting is that backslashes are rarely
needed within strings. Personally I find all the extra quotation marks
distracting and would prefer to use the old system:

  self.currentParams.a​dd(NameValuePair('id​', '38'))

escaped with backslashes as necessary. (I think that previously we did
not use backslashes properly, but a call into the Jython code can get
it to do this for us.)

My question is this: how do you think maxq should quote? Options are:

1. Single quoting.
2. Triple quoting.
3. User configurable, but default to one of the above.

Votes?


    Oliver


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe at maxq dot tigris dot org
For additional commands, e-mail: dev-help at maxq dot tigris dot org

« Previous message in topic | 1 of 4 | Next message in topic »

Messages

Show all messages in topic

[maxq-dev] Quoting strings in scripts Oliver Bock <oliverbock at switfdsl dot com dot au> Oliver Bock <oliverbock at switfdsl dot com dot au> 2004-09-15 18:27:59 PDT
     Re: [maxq-dev] Quoting strings in scripts Ryan Bloom <rbb at redhat dot com> Ryan Bloom <rbb at redhat dot com> 2004-09-16 05:49:30 PDT
         Re: [maxq-dev] Quoting strings in scripts oliverbock Oliver Bock 2004-09-19 18:43:24 PDT
     Re: [maxq-dev] Quoting strings in scripts hdara at primavera dot com hdara at primavera dot com 2004-09-16 10:19:37 PDT
Messages per page: