moleike / haskell-jsonnet

🎏 Haskell implementation of Jsonnet
https://hackage.haskell.org/package/jsonnet
Other
21 stars 6 forks source link

Desugar function parameters with no defaults to error #17

Closed moleike closed 3 years ago

moleike commented 3 years ago

This might simplify a bit the evaluation of applications. Currently, we represent parameter defaults with a Maybe t. When a parameter is not given a default expression, we may desugar it with the following default expr: error "Parameter not bound"