Re: [Bashburn-info] Question on Language files
Brought to you by:
bashburn
|
From: Anders L. <and...@gm...> - 2008-08-31 20:49:44
|
On Sun, 2008-08-31 at 16:08 -0400, Steven W. Orr wrote: > On Sunday, Aug 31st 2008 at 14:39 -0000, quoth Nick Warne: > > =>I just noticed a lot of the English Lang files text is wrapped in > =>singles quotes ' whereas most other languages use double quotes " > => > =>Why is this? Does it matter? Should there be a convention anyway if > =>either work (as they seem to do)? > => > =>I can clean up if desired tomorrow (pub time now ;-) ) > => > =>Nick > > There's nothing wrong with how things are written. using any of the > working quoting systems. I personally use a style that I developed called > The Steven Orr System of Minimal Shell Quoting. (patent pending) :-( > > Anyhoo, it looks like this: > > foo=Hello # Case 1 > bar='Woops. I slipped.' # Cabe B > baz="I like to say $foo when I meet peopls." # Case iii > > so what you have here is three distinct situations: > > In case 1, the value in question is a s single word. There is no need to > quote anything. You are allowed to use both single or double quotes, but > but not using anything, the reader of the code immediately sees that there > is a value that is composed of just one word. > > Case 2 is obviously a multi-word value with no variable expansion. No > double quotes needed. Yes, "s are legal, but I can look at a long string > and see right away that there is no variable expansion going on. > > Case 3 tells me right away that there are variables afoot. > > So you asked about a convention? There it is. > > Do you hate it? Do you love it? > Sound great to me. I think we should use this system, and I'll contact Stevens lawyers to settle a licensing fee. :-) -- Anders Lindén http://bashburn.sf.net |