queryverse / queryverse/IteratorInterfaceExtensions.jl

suggestion: static iterator size trait

Open
#13 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
11
Forks
3
Avg merge
1d 7h
Merged PRs (30d)
2

Description

I am proposing that another trait is added to IteratorSize2 to indicate that size is known statically, ie encoded in the result type.

Practical application is collecting into something like a StaticArrays.SArray or similar.

Bikeshedding the name is welcome, HasStaticLength and HasStaticShape could work.

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 locating the IteratorSize2 trait and its existing implementations and consumers. Clarify whether the static size belongs in the trait itself or its result type, settle the naming and semantics for StaticArrays.SArray-like collection, and add tests that demonstrate the intended behavior.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.