From: Phrogz Date: 2007-11-07T13:55:46+09:00 Subject: Re: Escaping characters On Nov 6, 6:28 pm, Pradeep Elankumaran wrote: > In Ruby, there is a distinction between strings that are between > double quotes and strings in single quotes. > "\\" escapes the necessary characters, and also allows substitution. > ex: "#{name}" => "Pradeep" > '\\' does not do any of these. ex: '#{name}' => '#{name}' > > Single-quoted strings are faster than double-quoted strings. I know it seems like that should be the case, but can you provide any proof that it is? In all the tests I've done, I've never found single- quoted strings to be any bit measurably faster than double-quoted.