SciML / SciML/RuntimeGeneratedFunctions.jl
Tuples in argument lists
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 112
- Forks
- 19
- Avg merge
- 6h 11m
- Merged PRs (30d)
- 9
Description
The following is a valid Julia function:
(a, (b, d), e) -> d + e
but doesn't work with RuntimeGeneratedFunctions (normalize_args throws an error). I've tried adding an override for :tuple that returns Tuple(normalize_args.(expr.args)) but then the new function throws an error:
TypeError: in Type, in parameter, expected Type, got a value of type Tuple{Symbol, Tuple{Symbol, Symbol}, Symbol}
Contributor guide
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
Start at normalize_args and reproduce the nested-tuple function shown in the issue. Trace the resulting new-function error and verify that RuntimeGeneratedFunctions accepts tuple arguments such as (a, (b, d), e) and evaluates d + e without the reported TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100