pure icon indicating copy to clipboard operation
pure copied to clipboard

Make sure `case .. of True => ... | False => ...` compiles to `If ... ... ...`

Open myreen opened this issue 2 years ago • 2 comments

Currently, cexp at source level doesn't have If. We need to make sure that the case expressions that really are If compile to If in CakeML.

myreen avatar May 02 '22 07:05 myreen

Ah, @mn200 points out that If does exist but as a primitive op.

myreen avatar May 02 '22 07:05 myreen

But not available to cexp programs, as those primitive ops are for exp only.

mn200 avatar May 02 '22 07:05 mn200