From: Paul Battley Date: 2006-09-26T17:56:44+09:00 Subject: Re: "" vs '' On 25/09/06, dave wrote: > > > Use " by default: > > - It makes the code more aestethic. > - It helps when you have to put some inside like #{} '. I often end up typing ' simply because it's an unmodified key on my keyboard, unlike " which necessitates pressing shift as well. Here's a little trick for when you have a '-quoted string that you want to add interpolation to: just add %: before: 'foo #{3}' # => "foo #{3}" after: %'foo #{3}' # => "foo 3" I'm not saying you should do it all the time, but it's occasionally nice to save a few keystrokes when playing around with some code. Paul.