- Notifications
You must be signed in to change notification settings - Fork61
Split graphemes and grapheme_indices into two methods#31
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
s.extended_graphemes() is more readable than s.graphemes(true), asyou don't have to think what does true mean here. Those methods wereimplemented as default methods in order to preserve backwardcompatibility if somebody implemented UnicodeSegmentation for theirown types.
i kinda think making it |
tapeinosyne commentedOct 14, 2017
A preference for |
LunaBorowska commentedOct 14, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Oh, there was already an issue about this in issue tracker. Somehow missed that. Unfortunately it's not really possible to have optional parameters in Rust, so changing But now that I think about it... I think it's feasible to have a trait with a different name which exports |
s.extended_graphemes()
is more readable thans.graphemes(true)
, as you don't have to think what does true mean here. Those methods were implemented as default methods in order to preserve backward compatibility if somebody implementedUnicodeSegmentation
for their own types.This is a feature, so second number in semantic version should be increased.