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

Interpolated Strings in tr-lang #30

Open
kaiserthe13th opened this issue Feb 6, 2022 · 0 comments
Open

Interpolated Strings in tr-lang #30

kaiserthe13th opened this issue Feb 6, 2022 · 0 comments
Labels
enhancement | yükseltme New feature or request | Yeni özellik veya istek help wanted | yardım isteniyor Extra attention is needed | Ekstra dikkat gerekli todo | yapılacaklar something we are to do | yapacağımız bir şey

Comments

@kaiserthe13th
Copy link
Owner

kaiserthe13th commented Feb 6, 2022

Many other high-level languages have Interpolated strings, even some not so high-level languages have them (Crystal). So tr-lang should also have Interpolated strings. This comes along with a syntax proposal for such strings.

&"var = {var}"
# interpolates var into the string

or

(var)"var = {fmt}":fmt
# formats var into string with var:__fmt

Note: The 2nd proposal depends on #31

@kaiserthe13th kaiserthe13th added enhancement | yükseltme New feature or request | Yeni özellik veya istek help wanted | yardım isteniyor Extra attention is needed | Ekstra dikkat gerekli todo | yapılacaklar something we are to do | yapacağımız bir şey labels Feb 6, 2022
@kaiserthe13th kaiserthe13th added this to Todo in kaiserthe13th/tr-lang via automation Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement | yükseltme New feature or request | Yeni özellik veya istek help wanted | yardım isteniyor Extra attention is needed | Ekstra dikkat gerekli todo | yapılacaklar something we are to do | yapacağımız bir şey
Development

No branches or pull requests

1 participant