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

Deprecate ~ in favor of flipbits #25514

Closed
wants to merge 1 commit into from
Closed

Deprecate ~ in favor of flipbits #25514

wants to merge 1 commit into from

Conversation

ararslan
Copy link
Member

Competitor to #25435. This replaces ~x as the bitwise negation operator with flipbits(x). The name is chosen to be consistent with the function flipbits! for BitArrays.

@ararslan ararslan added maths Mathematical functions deprecation This change introduces or involves a deprecation labels Jan 11, 2018
@ararslan ararslan mentioned this pull request Jan 11, 2018
@ararslan ararslan requested a review from Sacha0 January 11, 2018 20:22
@KristofferC
Copy link
Member

KristofferC commented Jan 11, 2018

I'm a bit surprised with this PR given the comment in #25156 (comment). I think your comment there very much applies in this case as well.

In my opinion, using ~ for the current purpose is good as it is.

@ararslan
Copy link
Member Author

I like & and |. I don't care much about ~, I just don't like !(::Integer). 🙂

@ararslan
Copy link
Member Author

Seems to be a general distaste for this, so I'll close.

@ararslan ararslan closed this Jan 12, 2018
@ararslan ararslan deleted the aa/flipbits branch January 12, 2018 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation This change introduces or involves a deprecation maths Mathematical functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants