JuliaArrays / JuliaArrays/StaticArrays.jl

Add a function to get the computed field types from an incomplete `StaticArray` type

Open
#1,206 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
844
Forks
159
Avg merge
3d 21h
Merged PRs (30d)
3

Description

Things like https://discourse.julialang.org/t/smatrix-2-2-float64-is-not-a-concrete-type/104638 are pretty common sources of confusion. I think it'd be good if we supplied a function fulltype or whatever that computes the extra field types of a StaticArray, e.g.

fulltype(SMatrix{2, 2, Float64}) == SMatrix{2, 2, Float64, 4}

ComputedFieldTypes.jl currently supplies a fulltype function for this exact purpose, so perhaps we should consider either copying that, or explicitly depending on ComputedFieldTypes.jl so that there's no conflicts if someone usings both packages.

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 the existing StaticArrays type API and the linked ComputedFieldTypes.jl implementation of fulltype. Decide whether StaticArrays should provide the function directly or depend on ComputedFieldTypes.jl, then verify that the incomplete SMatrix example resolves to SMatrix{2, 2, Float64, 4} without conflicts for users of both packages.

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
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.