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

Generator for typesafe StringResource.format() method #309

Open
y9san9 opened this issue Mar 1, 2022 · 0 comments
Open

Generator for typesafe StringResource.format() method #309

y9san9 opened this issue Mar 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@y9san9
Copy link
Collaborator

y9san9 commented Mar 1, 2022

For strings that contain patterns, it would be useful to have functionality that recognises such strings and forces you to write .format with all passed arguments (type-safe) for formatting.

This would also get rid of the mountain of unnecessary .desc() methods on regular string resources without templates.

Thus, regular strings in MR will immediately be of type StringDesc, and strings that need to be formatted will have format method generated specifically for that string's template, which will return StringDesc.

@Alex009 Alex009 added the enhancement New feature or request label Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants