Re:Black: An uncompromising Python code formatter
by Inityx on Friday May 25, 2018 @04:25PM
(#17157597)
And even then, Perl and Ruby (heck, even Bash) have a semantic difference between double- and single-quoted strings. The only other popular general-purpose languages where they're synonymous are PHP, JavaScript, and Lua.
[ Parent
| on HN ]
Re:Black: An uncompromising Python code formatter
by ComputerGuru on Friday May 25, 2018 @04:31PM
(#17157670)
>The only other popular general-purpose languages where they're synonymous are PHP, JavaScript, and Lua.
PHP does treat single and double quotes differently. Contents of single quotes strings are not parsed for variable substitution.