Open joshsh opened 1 year ago
Both in Haskell and Java code generation, Hydra is currently over-cautious about parenthesization, leading to expressions like:
primitiveArity x = (typeArity (Graph.primitiveType x))
and
hydra.extras.Extras.typeArity(((instance.value)).codomain));
The generated code is correct, but it looks dumb when these extra parens are included. The reasons have to do with operator precedence as well as some additional quirks of Java codegen.
Both in Haskell and Java code generation, Hydra is currently over-cautious about parenthesization, leading to expressions like:
and
The generated code is correct, but it looks dumb when these extra parens are included. The reasons have to do with operator precedence as well as some additional quirks of Java codegen.