JuliaArrays / JuliaArrays/StaticArrays.jl

Support for ConstructorBase

Open
#839 10 comments 1 reaction 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

Is there any interest in adding support for ConstructorBase.constructorof to StaticArrays? I think it's as simple as adding the following, likely to convert.jl

ConstructionBase.constructorof(::Type{SA}) where {SA<:StaticArray} = SA

Best,

Alex

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 in convert.jl and review the existing StaticArrays conversion definitions alongside the requested ConstructionBase.constructorof method. Done means StaticArray types support ConstructorBase.constructorof as described, with the relevant tests passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.