Skip to content

Replaced grpc::string with std::string#22190

Closed
veblush wants to merge 3 commits intogrpc:masterfrom
veblush:grpc-string
Closed

Replaced grpc::string with std::string#22190
veblush wants to merge 3 commits intogrpc:masterfrom
veblush:grpc-string

Conversation

@veblush
Copy link
Copy Markdown
Contributor

@veblush veblush commented Feb 29, 2020

Previously grpc::string was configurable with given custom string type but this indirection added more complexity and this would be better to be replaced with explicit std::string. Since we started using std::string in gRPC Core, this helps us to have better code readability with just one string representation.

grpc_build_artifacts_multiplatform: passed

@veblush veblush added lang/c++ release notes: yes Indicates if PR needs to be in release notes labels Feb 29, 2020
@veblush veblush requested a review from vjpai February 29, 2020 00:21
typedef GRPC_CUSTOM_STRING string;

using std::to_string;
// Using std::string and std::to_string is discouraged in favor of
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Change this to using grpc::string and grpc::to_string is discouraged ....

Copy link
Copy Markdown
Contributor

@vjpai vjpai left a comment

Choose a reason for hiding this comment

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

Approving in advance but please resolve my concern in the previous review. I don't have any further comments.

@stale
Copy link
Copy Markdown

stale bot commented May 6, 2020

This issue/PR has been automatically marked as stale because it has not had any update (including commits, comments, labels, milestones, etc) for 30 days. It will be closed automatically if no further update occurs in 7 day. Thank you for your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition/stale lang/c++ release notes: yes Indicates if PR needs to be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants