• @Tanoh@lemmy.world
    link
    fedilink
    81 month ago

    Yeah, you could very well argue that JS and others that use it for weird interpolated strings are the weird ones here.

      • @Tanoh@lemmy.world
        link
        fedilink
        21 month ago

        Sure, but in Perl and other languages there is a difference between "$foo" and '$foo'. In that the first expands the value of foo, while the other doesn’t.

        But usually if you need to write stuff in noisy strings, just use printf/sprintf. Or a <<HERE block.