# Re: "" vs ''

**URL:** <https://www.ruby-forum.com/t/re-vs/99178>\
**Category:** Ruby\
**Created:** [July 20, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/re-vs/99178 "2006-07-20T20:56:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [July 20, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/re-vs/99178/1 "2006-07-20T20:56:38Z")

</div>

> 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.
> 
> Thanks for your help.

I think this is more or less along the lines of personal preference.  
I’ve (somewhat recently) adopted the philosophy of always using single  
quotes for string literals, and only using double quotes for strings  
that require variable interpolation.

This has gotten me into a bit of trouble when I switch from Ruby to C  
extensions, however. 🙂

Regards,

Dan

This communication is the property of Qwest and may contain confidential  
or  
privileged information. Unauthorized use of this communication is  
strictly  
prohibited and may be unlawful. If you have received this communication  
in error, please immediately notify the sender by reply e-mail and  
destroy  
all copies of the communication and any attachments.
