HarrisonGrodin / HarrisonGrodin/Simplify.jl

Evaluation failure on unbound variables

Open
#49 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Julia
Stars
83
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Unbound expressions can't currently be converted to terms, since the symbols which bind the variables are immediately evaluated.

```julia
julia> @term(x -> x)
ERROR: UndefVarError: x not defined
Stacktrace:
[1] top-level scope at REPL[2]:1
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the @term(x -> x) example from the issue and then inspect the implementation of @term and its handling of unbound expressions. Done means the example converts the expression to a term without raising UndefVarError, with coverage for this behavior added to the relevant test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.