JuliaArrays / JuliaArrays/OffsetArrays.jl

Equality of empty OffsetArrays changes in Julia 1.5

Open
#111 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
212
Forks
45
PR merge metrics
No merged PRs in 30d

Description

Previously, empty arrays with different offsets compared as different because their axes compared as different.

In Julia master (JuliaLang/julia#32348), empty ranges are now equal, making OffsetArray([],-1) == OffsetArray([], -2).

I'm not sure what the right semantic is here; I believe this was untested in the entire ecosystem.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing this issue alongside JuliaLang/julia#32348 to understand how empty ranges became equal. Determine and document the intended equality semantics for empty OffsetArrays with different offsets, then add regression coverage once that behavior is decided.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.