CatalaLang / catala

Programming language for literate programming law specification

Home Page:https://catala-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some cases of the interpreter may be simplifiable

pierregoutagny opened this issue · comments

As discussed with @AltGr and @denismerigoux it looks like some of the cases of evaluate_expr in the interpreter are "rebuilt" (perhaps as an artefact of a past version), but can now be simplified.
When replacing with -> e the code for cases EAbs _, ELit _, and EEmptyError, all tests keep passing.