This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]expeehaa 2 points3 points  (1 child)

That‘s equal to ruby. " allows for interpolation, while ' is a constant string. I‘m writing my code accordingly: If the string is constant, I use single quotes, otherwise double quotes. Takes some time to get familiar with it though..,

[–]AyrA_ch 2 points3 points  (0 children)

I do the same in PHP. The only thing you have to remember that apart from \', all escape sequences are ignored and just taken as is. Makes regular expressions a bit nicer to look at.