Split graphemes and grapheme_indices into two methods#31
Split graphemes and grapheme_indices into two methods#31sugar700 wants to merge 1 commit intounicode-rs:masterfrom
Conversation
s.extended_graphemes() is more readable than s.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 implemented UnicodeSegmentation for their own types.
|
i kinda think making it |
A preference for |
|
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 implementedUnicodeSegmentationfor their own types.This is a feature, so second number in semantic version should be increased.