-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
lang: stabilise templatestring func experiment #35224
Conversation
b78c593
to
d04a9f2
Compare
d04a9f2
to
c137779
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems plausible to me so far!
(Sorry, I didn't notice this was a draft when I first looked at it, so this feedback may be jumping the gun.)
@@ -1311,9 +1327,14 @@ func TestFunctions(t *testing.T) { | |||
|
|||
for _, test := range funcTests { | |||
t.Run(test.src, func(t *testing.T) { | |||
data := &dataForTests{} // no variables available; we only need literals here | |||
data := &dataForTests{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess in some later PR we might want to factor this "fake evaluation data for tests" idea out into a single shared location, since I notice we now have at least two variations of it! (One in package lang
, and another in package terraform
.)
That's for another day, though. Not important for this PR.
c137779
to
e0e1c1e
Compare
e0e1c1e
to
1c39d1b
Compare
1c39d1b
to
f25a95d
Compare
f25a95d
to
93ba58f
Compare
93ba58f
to
ec3641c
Compare
Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
A
templatestring
function was introduced as a language experiment in #34968. Based on feedback the function seems to do the job, so this PR concludes the experiment by making the function available in all configurations.Closes #30616, closes #26838