-
Notifications
You must be signed in to change notification settings - Fork 426
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
rename domain.member? #5041
Comments
I created PR #5026 to add domain.contains(). I think we should add a deprecation warning to domain.member(), but leave it around (no-doc'd) for some time, since this is just a trivial renaming. In other words I'm in favor of 1a above. |
If we add a deprecation warning, I think we should add a test case that triggers it in test/deprecated and then remove it after the next release. I.e., I don't think there's great value in carrying deprecated features across multiple releases and would prefer to avoid carrying too much deprecated code around. I could possibly imagine an argument to carry it across two releases in case professors only teach a class using Chapel once a year, particularly in this case due to the triviality of carrying the code forward. |
@lydia-duncan, @bradcray, @ben-albrecht: OK, my current plan is to:
Sound OK? If I understand correctly this is OK with each of you... Thanks. |
Sounds good to me! |
👍
…On Dec 16, 2016 8:19 AM, "Lydia Duncan" ***@***.***> wrote:
Sounds good to me!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5041 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADbcuREfZMGiW3cy0gNmt2vXqyRiEyYkks5rIrojgaJpZM4LOMlj>
.
|
It remains unclear to me whether we have a quorum on this decision or whether most people blew it off as being silly and didn't bother responding. I think it'd be worth taking a better straw poll on rather than relying on only those who had time to weigh in on the topic. Or maybe you've got better results than I do... |
I am fine with @mppf 's proposal. |
I was disappointed by it.
Mike
On Dec 16, 2016, at 9:25 AM, David Iten <notifications@github.com<mailto:notifications@github.com>> wrote:
I am fine with @mppf<https://github.com/mppf> 's proposal.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#5041 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACERpp682luCq2gOOQdtN_vhWoH2xxziks5rIsl3gaJpZM4LOMlj>.
|
The proposal has 3 advocates and the only objections are that we have bigger fish to fry. |
Rename domain.member and range.member to .contains * Renames domain.member and range.member to .contains * Adds deprecation warning versions of these routines * Updates module code to use .contains * Updates test code to use .contains Resolves #5041, which included broader discussion of this direction. Possible future work: also rename dsiMember to dsiContains. - [x] full local testing Reviewed by @ben-albrecht - thanks!
The current method name for querying if a value is in a domain is
domain.member()
.E.g.
This method name bothers me for English/Programming Style reasons.
member
is a noun and I really want the method name to be a verb in this case.What should we do?
a) and deprecate domain.member()
b) and keep domain.member() as a synonym
x in someDomain
into this query (Support 'in' as an infix operator for membership test #5034)a) and deprecate domain.member()
b) and keep domain.member() as a synonym
The text was updated successfully, but these errors were encountered: