melsman / apltail

APL Compiler targeting a typed array intermediate language
MIT License
212 stars 9 forks source link

Support simple conditionals #6

Closed dybber closed 9 years ago

dybber commented 9 years ago

For the pricer we need conditionals of the form:

mins[1] ≥ 1: return ← 1150.0 × md_disc[1]

See https://github.com/dybber/aplbench/blob/master/finpar-generic-pricer/dyalog/pricer.apl#L174

We might want to simplify the above example code before working more on this

melsman commented 9 years ago

Does this mean that we also need support for explicit assignment and not just let-binding support that we have now? Would it be ok with a plan for implementing index-assignment but not variable assignment?

melsman commented 9 years ago

BTW: We do have support for conditionals already - see the else.apl test examples.