[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: "" vs ''

jmg3000

7/20/2006 8:52:00 PM

On 7/20/06, Ben Johnson <bjohnson@contuitive.com> wrote:
> I know this is a very simply question, but I've seen many different
> responses.
>
> Isn't it better to use 'some string' instead of "some string".
> Because the "" goes through a lot more working interpreting any
> variable that might be in the string, etc. Where as '' is just literal.

I usually use double quotes since my strings often have apostrophes in 'em.

'Tis better'n always escapin' 'em anyways. Maybe it's just me tho'.

---John