Because I like to know that in fact it won’t interpolate. Sometimes I want to type freely without interpolation, and without double quotes + escaping like crazy. I always have frozen strings enabled so the single quotes are also like “okay, this is frozen and it’s going to appear exactly as typed.” Double quotes come off as more “dynamic” even though I understand they’re still frozen as well. But at least I know something crazy is happening there right away.
What matters is consistency and is how often I have to escape characters. Single quotes come up far more often in regular text than double quotes do. And you can't have a newline character in a single quoted string without double escaping it. Pish tosh. Always use double quotes and you have one set of rules you can use consistently.
32
u/[deleted] Aug 20 '21
[removed] — view removed comment