JuliaArrays / JuliaArrays/FixedSizeArrays.jl
better error message when `convert` fails as intended
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 99
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
From Discourse:
Since this is a common thing people might try, it might be worth either adding
convertmethods that just error, or adding error hints to this particularMethodError, linking to this issue and asking people to explicitly use the constructor.
The drawback of adding a convert methods that just errors is increasing the number of methods. However that seems better than registering an error hint, which requires non-static global state AFAIK.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin at the conversion call that produces the MethodError and compare it with the explicit constructor path. Resolve whether the project wants throwing convert methods or a MethodError hint; done means the selected behavior gives users the requested guidance without the other approach.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100