• Feathercrown@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 day ago

    On the other hand, interpolated strings are fucking awesome and you need them every 5 seconds for UI work

    • Tanoh@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      14 hours 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.