AssembleProgramming / AssembleScript

AssembleScript is a programming language designed for avengers to write powerful scripts and fight against evil forces. This repository contains it's source code and documentation.
https://assemblescript.vercel.app/
MIT License
12 stars 5 forks source link

Use of template literal ` in vision() statement #28

Closed shashankbhosagi closed 1 year ago

shashankbhosagi commented 1 year ago

Use Case

To introduce use of template literals in vision statement to make vision more userful.

Proposed Solution

Now in vision() in AssembleScript we can only use double quotes.

vision("Avengers Assemble!!!!!!!!!!");

After using template literals we can use template literal in vision as follows.

vision(`Avengers Assemble!!!`);

Benefits

Main benefit of using a template literal is that you can use value of variables using $ in general Javascript

Possible Implementation

Possible implementation are'Avengers Assemble ${var1}' but one issue here is, that we use $ for comment in template literalls. So we can use @ or any other symbols..


SahilK-027 commented 1 year ago

Assign it to me 👍🏻