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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Countable enums #2

Merged
merged 2 commits into from
Aug 31, 2016
Merged

Countable enums #2

merged 2 commits into from
Aug 31, 2016

Conversation

marijnschilling
Copy link
Contributor

@marijnschilling marijnschilling commented Aug 30, 2016

Added the gist and created a test

Do we have any conventions about class-naming? I think that RawRepresentable makes it unclear that it is about enums, but it is an extension to that 馃

Test passed: 馃憖
screenshot 2016-08-30 17 44 27

case secondCase
}

XCTAssertEqual(CountableEnum.count, 2)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Beautiful!!!!

@3lvis
Copy link
Collaborator

3lvis commented Aug 30, 2016

Ideally all the extensions for RawRepresentable would go there, then it's not going to be about just the count. That's why I think the name that you picked is just fine.

@3lvis 3lvis merged commit d2fd445 into master Aug 31, 2016
@3lvis 3lvis deleted the feature/enum-count branch August 31, 2016 07:08
@3lvis 3lvis mentioned this pull request Aug 31, 2016
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.

None yet

2 participants