queryverse / queryverse/DataValues.jl

Using Any as a lower bound

Open
#82 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

This isn't an issue per se, just curious (I am researching Julia subtyping, and we are looking into lower-bounds usages)...

https://github.com/queryverse/DataValues.jl/blob/d568d258d8735e8478b4974dfa0bc5816088c5cb/src/array/constructors.jl#L78

Is there a reason to use A::AbstractArray{S,N} with S >: Any instead of A::AbstractArray{Any,N}?
It seems that there shouldn't be any types distinct from Any that would be supertypes of Any.

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/array/constructors.jl at line 78 and review the surrounding constructor code. Check Julia's handling of the shown lower-bound type parameter and compare it with the intended array element-type behavior; the issue provides no defined change or completion test.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.