Skip to content
This repository has been archived by the owner on Oct 18, 2018. It is now read-only.

SlackCommand.ParseParameters(...) -> TryParseParameters(...) #234

Merged
merged 1 commit into from
Jan 24, 2018

Conversation

dougbu
Copy link
Member

@dougbu dougbu commented Jan 24, 2018

- #231
- avoid returning a `ValueTuple` and hitting dotnet/standard#567
- reenable tests skipped in #232
@dougbu dougbu requested a review from rynowak January 24, 2018 20:18
/// </returns>
public static (IDictionary<StringSegment, IList<StringSegment>> Parameters, string Error) ParseParameters(
StringSegment text)
public static IDictionary<StringSegment, IList<StringSegment>> TryParseParameters(
Copy link
Member

Choose a reason for hiding this comment

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

consider converting this to a bool TryParseParameters(text, out paramters, out errorMessage)

I usually expect a bool when I see Try.

I don't think it's super important

Copy link
Member Author

Choose a reason for hiding this comment

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

Went with your not "super important" leaning, partially because the double-out part looks icky and partially to avoid redoing the doc comments yet again.

@dougbu dougbu merged commit e65d214 into dev Jan 24, 2018
@dougbu dougbu deleted the dougbu/parse.differently.231 branch January 24, 2018 20:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants