SQL call formatting style
David Miller
justdave at syndicomm.com
Tue Apr 1 17:50:53 UTC 2003
On 3/29/03 10:39 PM +0000, Gervase Markham wrote:
> Anyway, we are now going round in circles, and it's time for a justdave
> ruling :-)
>
> Dave? Pick a "standard", or say there's none and everyone can use
> whatever quoting style they like.
If I had to pick a preference, I'd go for the q{} stuff, personally. Once
you get past that initial hurdle of realizing it's a way to quote, I find
it much easier to read, and you don't have to worry about quoting quotes
inside it, which can cause coding errors if you're not careful with normal
quotes. :) And vim seems perfectly happy to syntax highlight it correctly
:)
My general practice has been to use q{} or qq{} in situations where there
will be quotes inside the string, and in line nearby the ones done that was
for consistency, and "" or '' otherwise, which actually, now that I look at
it, is exactly what it says in 'man perlstyle' which is what we've already
stated is our guide for coding style. :)
--
Dave Miller Project Leader, Bugzilla Bug Tracking System
http://www.justdave.net/ http://www.bugzilla.org/
More information about the developers
mailing list