Skip to content

Conversation

@jadarve
Copy link

@jadarve jadarve commented Nov 20, 2025

@jackdotink
Copy link
Contributor

its possible and good to use \ and \z for multiline interpolated strings today

@xHeptc
Copy link

xHeptc commented Dec 7, 2025

local str = [[
%s has joined the chat!
%s says hello world!
]]

local str = string.format(str, "John", "John")
print(str)

Why not just do this? (Yes it's string formatting, but you can still have the same output, with a little overhead perhaps)

@Kampfkarren
Copy link
Contributor

You definitely can't do `[[ or [[` since both are backwards incompatible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants