expr-lang / expr

Expression language and expression evaluation for Go
https://expr-lang.org
MIT License
5.85k stars 378 forks source link

Estimated expression cost #628

Open antonmedv opened 2 months ago

antonmedv commented 2 months ago

Add an ability to calculate on compile step estimated cost of expression evaluation.

We can add a tag for fields:


type Env struct {
    List []string `expr:"list",size:"100"`
}
``