-
Notifications
You must be signed in to change notification settings - Fork 213
Add syntax for grapheme clusters literals. #1432
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
Comments
This proposal is derived from the closed proposal #1428. |
I think it should be constant, but I'm not sure it is a good idea. |
Naming system of prefix must be arranged with #886 and others if exist. |
I don't know that the I agree that the characters package should be included as a core package; it provides a fundamental functionality, and it's a lot easier to import "dart:characters" than go to pubspec.yaml, include characters, come back to my file, import the package, and remember why I needed it in the first place. |
There is a proposal to introduce single code point constant (but not sequence of code points) with similar syntax by core member. As you said, grapheme cluster is fundamental, which deserves literal, I think. |
Characters cs = '𠮷野'; // lint : omit_local_variable_types can be rewrote to var cs = g'𠮷野'; |
If we move I'm also sure that some will argue that |
I knew. |
It might be nice to have a lint discouraging people from using |
I can assure you, as someone who's written quite a lot of small parsers, that A Dart A |
Yes. This proposal is just for literal and |
Currently, grapheme clusters (
Characters
) are the only way to manipulate natural languages correctly.So, I propose syntax for grapheme clusters literals like
g"𠮷野"
.It might include a proposal that
characters
extension must be a part ofdart:core
.The text was updated successfully, but these errors were encountered: