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

Support string interpolation #122

Open
RandomFrenchman opened this issue Dec 24, 2020 · 2 comments
Open

Support string interpolation #122

RandomFrenchman opened this issue Dec 24, 2020 · 2 comments
Labels

Comments

@RandomFrenchman
Copy link

In the Koka book, the following syntax is used in order to display a number following a string: println("yielded " + i.show).

It tends to be quite heavy as the number of conversions increases.
I think it would be nice to have a string interpolation syntax (maybe "yielded ${i}"?)

@exebook
Copy link

exebook commented Dec 28, 2020

This is probably not in the min-gen spirit. I wonder if it's possible to use dot syntax for convenient string concatenation.

@m9xiuz
Copy link

m9xiuz commented Apr 10, 2021

Please don't implement it like "yielded ${i}". Typing an extra symbol before each expression is very annoying. Implement it at least like it's implemented in C#: $"yielded {i}". But the most convenient way is of course just "yielded {i}".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants