-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
[FEEDBACK] function use outside its intent #852
Comments
This does seem to be a specification gap. |
This is addressed in Formatting: message-format-wg/spec/formatting.md Lines 740 to 744 in 4514e88
This is addressed in Resolve Selectors step 2.iii.: message-format-wg/spec/formatting.md Lines 517 to 522 in 4514e88
|
@eemeli Indeed, it is explained clearly. How did I overlook them?! Thanks! |
When the value cannot be formatted by a given function, none of the Message Function Error errors fit the intent and purpose:
@eemeli, would you consider adding a new error to cover this scenario? Or do you rely on implementation defined Message Function Error? message-format-wg/spec/errors.md Line 280 in 8370709
|
We used to have something like that (Formatting Error), but it was dropped in #774 in favour of Message Function Error, which implementations are indeed welcome to implement any necessary cases of. The default set of functions doesn't include any that are only selectors so we've not ended up enumerating an explicit error for it. However, we do define If you're able to sign the CLA, we'd welcome a PR adding such a Message Function Error for consideration? |
We discussed this in the 2024-08-12 telecon. The WG believes that "Whan the value cannot be formatted by a given function" is covered by text at line 253 in formatting.md:
The value is the operand, so this seems to cover it. What are we missing? (Closing per telecon, reopen if not satisfied) |
What should happen when the function is used outside its intent?
:x
is defined for selection only and used for formatting:x
is defined for formatting only and used for selectingThe text was updated successfully, but these errors were encountered: