bytes
/string
literal concatenation
#13661
Labels
closed due inactivity
The issue/PR was automatically closed due to inactivity.
feature
language design
Any changes to the language, e.g. new features
stale
The issue/PR was marked as stale because it has been open for too long.
In some languages subsequent string literals are concatenated prior to compilation, which proves useful for containing large amounts of verbatim text in source code, while splitting it across multiple lines or logical boundaries.
One good example for Solidity is NFT metadata-JSON and SVG generation, where text is built up programatically. Current best practice is use
string.concat
and break logical parts.Here's an excerpt from Uniswap NFT:
This results in a bunch of items on the stack and a lot of more runtime overhead.
It would be useful allowing
'hello' 'world'
to be compounded ashelloworld
.The text was updated successfully, but these errors were encountered: