in reply to Re^2: In Love With Double Quotes
in thread In Love With Double Quotes
There have been many arguments in favor of using single-quotes as a marker that no interpolation is going to happen. This implies that double-quotes denote that interpolation is going to happen. I find this a subtle sort of commenting and would not count on any one's self discipline to be consistent at it unless I knew there was an effective system to enforce it. The idea shows an attention to detail that I can respect but I find the convention uninteresting and uninspiring. Usually strings are just not that interesting from a programmer's perspective. Often I may start a string without much thought as to what all will be in it when its contents are finalized.
There are situations where quoting styles are worth attention. When generating templating text or code that has lots of special characters; in such cases it is worth avoiding " and ' and using the other quoting methods.
Be well,
rir
|
|---|