-
Notifications
You must be signed in to change notification settings - Fork 45
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
Forbid "?" in the identifier #65
Comments
For posterity, I'm pasting my argument for allowing the question mark. The previous discussion about this was in #49. This is not about using English punctuation in identifiers but rather about communicating the role of the message better. Software inherently ends up asking questions via the UI. Allowing the question mark in identifiers makes it easier to communicate the intent without thinking too much about naming conflicts. Instead of using longer ids like
For this reason, question mark is in fact a valid character in identifiers in many languages. I know of at least Clojure, Elixir, Ruby and Scala that allow it. We've also seen developers use the question mark in Gaia. I found examples similar to the following one in the localizations of the Camera, Dialer, Gallery, and Videos apps:
|
Since we can always allow |
We're going back on this. Let's start without it and revisit post-1.0.
As per Stas' request in projectfluent/fluent.js#84 (comment)
I am not convinced and I would see a value in not adding this sygil at this point.
My reasoning boils down to two items:
I'd love to use as few sygils in the ID as possible and the
[a-Z_-0-9]
is imho the far end of what we should start with.The text was updated successfully, but these errors were encountered: