Skip to content
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

Return string value of Some or blank in Option<T>.ToString() #19

Merged
merged 2 commits into from
Jan 10, 2017

Conversation

atifaziz
Copy link
Contributor

Since you approved of the idea laid out in #17, thought I'd submit a PR. 😄

All unit tests are green.

Style-wise, let me know if you'd rather have the ToString implementation expanded to a full-blown if-else statement.

This renders Option<T>.ToString() consistent with Nullable<T>.ToString() and easier to substitute for.
@atifaziz atifaziz force-pushed the option-maybe-val-tostr branch from 2c08dec to c9b9959 Compare December 23, 2016 10:22
@atifaziz atifaziz force-pushed the option-maybe-val-tostr branch from 69b3d63 to f4668ce Compare December 23, 2016 10:33
@nlkl nlkl changed the base branch from master to develop-v4 January 10, 2017 19:05
@nlkl nlkl merged commit 8ddb72d into nlkl:develop-v4 Jan 10, 2017
@atifaziz atifaziz deleted the option-maybe-val-tostr branch January 10, 2017 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants