JuliaGeometry / JuliaGeometry/Intervals.jl

Empty intervals

Open
#2 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Description

I periodically find the need for an Interval type that doesn't imply the step size present in Ranges. I could get such a type from here or AxisArrays. Currently, though, I roll my own to mimic the way you can create an empty range with 1:0; here, these lines imply that something similar won't work (and AxisArrays deliberately throws an error). How important are those behaviors to users of these packages? Should I just keep rolling my own, or might it be worth trying to have an official stand-alone registered Intervals package? CC @mbauman.

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 with src/Intervals.jl lines 21-25 and compare the linked AxisArrays intervals.jl behavior. Decide whether empty Interval values and a standalone registered package are in scope, then document the chosen behavior and acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.