Skip to content

Conversation

@MaxGraey
Copy link
Member

@MaxGraey MaxGraey commented Aug 1, 2021

Simplify following special cases:

`${expr}`           ->  expr.toString()
`pref${expr}`       ->  "pref" + expr.toString()
`${expr}suff`       ->  expr.toString() + "suff"
`${exprA}${exprB}`  ->  exprA.toString() + exprB.toString()
  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@MaxGraey MaxGraey changed the title Add shortcut for ${expr} string templates Add shortcuts for ${expr}, pref${expr} and ${expr}suff string templates Aug 1, 2021
@MaxGraey MaxGraey changed the title Add shortcuts for ${expr}, pref${expr} and ${expr}suff string templates Add shortcuts for some string templates Aug 1, 2021
@MaxGraey MaxGraey changed the title Add shortcuts for some string templates Add shortcuts for some non-tagged string templates Aug 1, 2021
@MaxGraey MaxGraey requested a review from dcodeIO August 1, 2021 15:06
@MaxGraey MaxGraey merged commit 551b312 into AssemblyScript:main Aug 2, 2021
@MaxGraey MaxGraey deleted the opt-template-strings branch August 2, 2021 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants