-
Notifications
You must be signed in to change notification settings - Fork 748
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
Allow string interpolation in property names #267
Comments
ship it! |
A drawback of allowing unrestricted interpolation that we should probably discuss: all our type safety goes out of the window as soon as anyone uses it. For example:
Or:
|
We could probably restrict it to places that are using An even more restrictive option could be to only allow its use at |
What if we required the property name (not property value) to be of type I think this would give us decent type safety and would prevent arbitrary strings from being used that way. Since we're planning functions to construct |
Those strings should support string interpolation so I can use expressions:
The text was updated successfully, but these errors were encountered: