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

Enum inner reworking to remove usage of Val{T} #10315

Closed
wants to merge 1 commit into from
Closed

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Feb 24, 2015

See @JeffBezanson's comments here for an enlightening discussion on the performance of using Val{T} for restricting enum values.

Also addresses his comments here and incorporates @jakebolewski's proposal in #10309 to disallow duplicate enum member values.

@JeffBezanson
Copy link
Member

Ha, we did this at the same time. We'll have to combine the best of both; you have some improvements that I don't.

I like your improved next/done. Not only faster, but names can give the names and collect(T) can be used to get the instances.

@JeffBezanson
Copy link
Member

Do you want to merge the two versions, or should I?

@quinnj
Copy link
Member Author

quinnj commented Feb 25, 2015

I could do it later tonight, but feel free if you can get to it first.

@JeffBezanson
Copy link
Member

Ok I'll do it.

@JeffBezanson
Copy link
Member

Done.

@quinnj quinnj closed this Feb 25, 2015
@quinnj quinnj deleted the jq/enumfixes branch February 25, 2015 17:51
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