Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[String] renamed core classes to Byte/CodePoint/UnicodeString#33816

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

Merged
nicolas-grekas merged 1 commit intosymfony:masterfromnicolas-grekas:string-uni
Oct 7, 2019

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedOct 2, 2019
edited
Loading

QA
Branch?master
Bug fix?no
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

In#33553 there have been discussions about the naming of the classes - eg. "what's a grapheme", "whyUtf8String", "lowercase on binary is weird", etc.

What about these names? Would they get your votesvs the current ones?

  • BinaryString ->ByteString
  • Utf8String ->CodePointString
  • GraphemeString ->UnicodeString

gharlan, teohhanhui, alsar, derrabus, Capenus, lyrixx, andreybolonin, ro0NL, robfrawley, and apfelbox reacted with thumbs up emoji
Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I like the new names a lot:ByteString andUnicodeString would be self-explanatory for most developers and onlyCodePointString would need some explanation for some people (but that's normal ... this is a "complex" topic, so developers need to learn some terminology).

alsar, OskarStark, lyrixx, derrabus, ro0NL, and apfelbox reacted with thumbs up emoji
Copy link
Member

@derrabusderrabus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I like the new naming. In the original PR,I especially found the nameBinaryString problematic. If we look at the operations that this class allows, the class does not represent an arbitrary binary string, but a character string with some one-byte character encoding, e.g. ISO-8859-something. The new name reflects that better, imho.

nicolas-grekas added a commit that referenced this pull requestOct 7, 2019
…tring (nicolas-grekas)This PR was merged into the 5.0-dev branch.Discussion----------[String] renamed core classes to Byte/CodePoint/UnicodeString| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| Deprecations? | no| Tickets       | -| License       | MIT| Doc PR        | -In#33553 there have been discussions about the naming of the classes - eg. "what's a grapheme", "why `Utf8String`", "lowercase on binary is weird", etc.What about these names? Would they get your votes *vs* the current ones?- `BinaryString` -> `ByteString`- `Utf8String` -> `CodePointString`- `GraphemeString` -> `UnicodeString`Commits-------63c105d [String] renamed core classes to Byte/CodePoint/UnicodeString
@nicolas-grekasnicolas-grekas merged commit63c105d intosymfony:masterOct 7, 2019
@nicolas-grekasnicolas-grekas deleted the string-uni branchOctober 7, 2019 11:18
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

@derrabusderrabusderrabus approved these changes

@ycerutoycerutoyceruto approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.0

Development

Successfully merging this pull request may close these issues.

6 participants

@nicolas-grekas@javiereguiluz@stof@derrabus@yceruto@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp