Skip to content

Conversation

@jpreese
Copy link
Contributor

@jpreese jpreese commented Aug 18, 2017

Part of #356

return new TestMethodBodyWithBooleanCheck(canonicalDataCase, CanonicalData);
}

if(canonicalDataCase.Expected is null)
Copy link
Contributor

Choose a reason for hiding this comment

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

The Type A in me is screaming about a missing space after the if ;)

Copy link
Contributor

Choose a reason for hiding this comment

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

I forgot that I can fix it inline :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh man, that would bother me too. I didn't even notice that. Usually Visual Studio just automatically tosses that in for me.

@robkeim
Copy link
Contributor

robkeim commented Aug 19, 2017

Nice work @jpreese! The only thing I wonder about this is should we be avoiding null at all and just using exceptions. I'll create an issue to discuss it further.

@robkeim robkeim merged commit 137af43 into exercism:master Aug 19, 2017
@robkeim
Copy link
Contributor

robkeim commented Aug 19, 2017

Thanks @jpreese 🎉

@jpreese jpreese deleted the use-assert-null-when-possible branch August 19, 2017 05:36
Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

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

Great work!

@ErikSchierboom
Copy link
Member

The only thing I wonder about this is should we be avoiding null at all and just using exceptions. I'll create an issue to discuss it further.

👍 I think we should definitely have some discussion on this issue.

@ErikSchierboom
Copy link
Member

@robkeim Issue created: #366

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.

3 participants