Comment

Comment by david_allison

Unpleasantly verbose, especially compared to Kotlin. They'd have come up with a much better approach if they had to add it to their list of current implementations.

    C#           $"{x} plus {y} equals {x + y}"
    Visual Basic $"{x} plus {y} equals {x + y}"
    Python       f"{x} plus {y} equals {x + y}"
    Scala        s"$x plus $y equals ${x + y}"
    Groovy       "$x plus $y equals ${x + y}"
    Kotlin       "$x plus $y equals ${x + y}"
    JavaScript   `${x} plus ${y} equals ${x + y}`
    Ruby         "#{x} plus #{y} equals #{x + y}"
    Swift        "\(x) plus \(y) equals \(x + y)"
    Java         STR."\{x} plus \{y} equals \{x + y}"

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton