Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String Templates #135

Open
3 tasks
Clashsoft opened this issue Sep 4, 2019 · 1 comment
Open
3 tasks

String Templates #135

Clashsoft opened this issue Sep 4, 2019 · 1 comment
Assignees
Labels
feature New feature or request

Comments

@Clashsoft
Copy link
Member

Clashsoft commented Sep 4, 2019

We write "hello" into hello.
We write "world" into world.
We write "<hello> <world>!" into greeting.

Open questions:

  • Should this be available to all string literals ('', ""), or should there be a new type of string literals using backticks?
  • What is the best delimiter? <> makes it hard to write HTML or XML. $ could be an option, either as $name (Groovy), $name$ (ST) or ${name} (JavaScript, Groovy)
  • Can arbitrary expressions be used? E.g. <name of student> or ${name of student}.
@Clashsoft Clashsoft added the feature New feature or request label Sep 4, 2019
@Clashsoft Clashsoft added this to the v0.9.0 milestone Sep 4, 2019
@Clashsoft Clashsoft self-assigned this Sep 4, 2019
@Clashsoft Clashsoft changed the title Adding to string variables String Templates Sep 9, 2019
@Clashsoft
Copy link
Member Author

Planning to use String.format.

@Clashsoft Clashsoft removed this from the v0.9.0 milestone Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant