SQL call formatting style

Gervase Markham gerv at mozilla.org
Wed Mar 26 09:10:00 UTC 2003



Bradley Baetz wrote:
> On Tue, Mar 25, 2003 at 11:57:59PM +0000, Gervase Markham wrote:
> 
>>No, I mean, one objection to the s/\s+/ /gs; thing was (if I read it 
>>right) that it would remove newlines embedded in e.g. search strings in 
>>queries. I was asking whether we actually do that?
> 
> 
> Does it matter? Where was it that you were planning on munging this,
> anyway? :)
> 
> I'm not even sure that we care about the stuff in error messages,
> anyway. The only complicated ones are for Search.pm, and thats not the
> focus of this anyway, since that query is dynamically generated. I'm
> talking about the stuff which are (basically) static, simple, strings,
> very, very, very occasionally with |$whereClause| added in the middle.
> 
> Not to mention that all of the "." stuff is annoying. 

You can stop making this point; I completely agree, and my most recent 
proposal doesn't include them. :-)

But, what's the advantage of
qq{FOO
    BAR}
over
"FOO
  BAR"
? I find the latter easier to read.

Gerv




More information about the developers mailing list