-
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
New syntax for Unicode literals #115
Comments
Or, we could implicitly concatenate expressions which are next to each other: |
Do we have a way to get the actual breakage? CC @mathjazz @flodolo My personal take is that I hate the readability problems at the end of I'd not make the |
Define breakage? |
How many of translations and strings contain |
I suggested the lower bound because I think this is how Unicode code points are specified by convention. Also, |
OTH, |
We have quite a few, but I don't think we ported anything to FTL (also not sure how they would be ported?). Looking into Pontoon's DB sounds like a good idea though. |
Looking at https://en.wikipedia.org/wiki/Plane_(Unicode), 5 hexdigits is more commonly used than 6. |
... actually, clarifying question: Do you intend to remove |
I'd prefer to have a single way, but as I mentioned in the OP, removing Actually, let me file another issue clarifying my current thinking. |
I filed #123 which outlines my plan to simplify the grammar of text inside of |
Both matches are false positives: |
My option would be to go for allowing only Side note: if we do this, we should also think about migrations, and replacing |
I haven't been able to find a way to use the proposed Unicode literals inside of
I think this would be a major change in the design of Fluent. It would allow quoted patterns as values of named arguments, possibly variant keys (#90), and as a way to nest complex expressions (
This in turn would require something like a I'd like to open this issue up for feedback about these two approaches. My own opinion is that they bring in too much complexity for relatively little gain. If we agree not to change Furthermore, if we only allow
|
The question around unicode literals in string literals is hard to solve. Also, I agree that WONTFIX is a good resolution here. |
Agreed. Thanks for your thoughts. |
Thank you. |
Our current Unicode escape sequence uses the
\u
syntax. This is an established pattern and we agreed that in general using actual characters should be preferred. However, in particular in case of non-printable characters, I think we could to better to make them more readable to non-programmers.I wonder about introducing a new literal type which evaluates to Unicode characters. The syntax would be:
For example:
To make this a viable solution inside of
StringExpressions
, we'd need to allow{}
placeables inside ofStringExpressions
which would really mean making them into quotedPatterns
.The text was updated successfully, but these errors were encountered: