String interpolation: Difference between revisions

Content deleted Content added
m Examples: lang="output"
Next Generation Shell: remove section. we have no article on this language. no reliable sources cited. no evidence this language meets notability requirements for inclusion in Wikipedia
Line 207:
<syntaxhighlight lang="output">apples
bananas</syntaxhighlight>
 
=== Next Generation Shell ===
{{Main|Next Generation Shell}}
The recommended syntax is <code>${expr}</code> though <code>$var</code> is also supported:
<syntaxhighlight lang="sh">quality = "superhero"
apples = 4
bananas = 3
sentence = "A developer is a $quality. I have ${apples + bananas} fruit"
echo(sentence)</syntaxhighlight>
The output will be:
<syntaxhighlight lang="output">A developer is a superhero. I have 7 fruit</syntaxhighlight>
 
=== Nim ===