diff --git a/rfcs/syntax-string-interpolation.md b/rfcs/syntax-string-interpolation.md index 9f7ae0852..2fbb04b0b 100644 --- a/rfcs/syntax-string-interpolation.md +++ b/rfcs/syntax-string-interpolation.md @@ -87,13 +87,15 @@ print(`Welcome to \ -- Luau! ``` -This expression can also come after a `prefixexp`: +We currently *prohibit* using interpolated strings in function calls without parentheses, this is illegal: ``` local name = "world" print`Hello {name}` ``` +> Note: This restriction is likely temporary while we work through string interpolation DSLs, an ability to pass individual components of interpolated strings to a function. + The restriction on `{{` exists solely for the people coming from languages e.g. C#, Rust, or Python which uses `{{` to escape and get the character `{` at runtime. We're also rejecting this at parse time too, since the proper way to escape it is `\{`, so: ```lua