You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.
Constructing new strings from several sub-strings and variables is currently quite cumbersome.
Imagine the need to construct the string "Hello, world!" from the variable subject and the string template "Hello, %s!":
let greeting = concat(concat("Hello, ", subject), "!");
Being able to either use the + operator to concatenate strings and variables or allowing interpolation in the first place would make this much simpler:
// Imaginary + operator
let greeting_concat = "Hello, " + subject + "!";
// Imaginary string interpolation similar to Groovy or Scala
let greeting_interpolate = """Hello, ${subject}!"""
The text was updated successfully, but these errors were encountered:
Constructing new strings from several sub-strings and variables is currently quite cumbersome.
Imagine the need to construct the string "Hello, world!" from the variable
subject
and the string template "Hello, %s!":Being able to either use the
+
operator to concatenate strings and variables or allowing interpolation in the first place would make this much simpler:The text was updated successfully, but these errors were encountered: