3 ms·
When my linter screams at me for not using the correct quotes, I usually think "who cares... it's a string and you know it". I don't really understand why some
by linkdd 6y ago
When my linter screams at me for not using the correct quotes, I usually think "who cares... it's a string and you know it".
I don't really understand why some languages allow multiple syntax for the same thing.
But it's good to know that in some languages (most shell scripts, Groovy, ...) double-quotes and single-quotes are not exactly the same. String substitution does not exist with single quotes, and I always take far too long to notice that this is why my code is not working.