Templated strings#2698
Conversation
|
Looks like you gotta gate the tests to Python 3.14. |
|
I don't think you need (defreader r []
(if hy.compat.PY3-14
`(do ~@(.parse-forms-until &reader ""))
(for [_ (.chars &reader True)])))
#r |
oh very cute, I like that |
|
I force-pushed to group some logically related commits together. I think you might be gating for Python 3.14 in Hy itself a bit too aggressively. There's no reason that the Hy syntax By the way, does it make sense for t-strings to by represented as It looks like I think Finally, of course, we'll need documentation. |
Python 3.14 introduced t-strings as a new literal type.
This PR allows parsing t-strings, as well as introduces a new pragma
bracketed-templatesto additionally allow bracketed t-strings (a la bracketed f-strings).