google / starlark-go

Starlark in Go: the Starlark configuration language, implemented in Go
BSD 3-Clause "New" or "Revised" License
2.26k stars 204 forks source link

Add support for formatted string literals (PEP 498) #416

Closed raphaelfff closed 1 year ago

raphaelfff commented 1 year ago

PEP 498 introduced formatted string literals which make this possible:

>>> name = "Star-Lord"
>>> f"Starlark, say hi to {name}"
'Starlark, say hi to Star-Lord'

Would be super useful for this to be present in starlark :)

adonovan commented 1 year ago

This is a spec change, so it doesn't belong in this repo. Closing as a dup of https://github.com/bazelbuild/starlark/issues/91.