Re:OCaml – Compiling Mini-ML to JavaScript
by simplify on Sunday June 28, 2015 @05:07PM
(#9795107)
For representing `if` statements in JavaScript, what was the reasoning for using a function over a ternary?
[ Parent
| on HN ]
I changed from the ternary representation to the function, because I didn't think the generated code was very readable. In hindsight I'm not sure it's that much improvement. From a performance view it's probably worse off.