Skip to content

deprecate <<, >>, >>> on BitArray #30958

@JeffBezanson

Description

@JeffBezanson

I was surprised to find we still have these methods. Instead, we should have a shift[!] function that works on any array. Using >> to move BitArray elements is arguably a pun, and I think the way we define it is arguably wrong:

julia> BitVector([1,1,1]) >> 1
3-element BitArray{1}:
 0
 1
 1

>> moves elements towards higher indices, while for integers >> moves bits towards lower bit indices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]breakingThis change will break codedeprecationThis change introduces or involves a deprecation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions