Re: "" vs ''

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. :slight_smile:

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs