monte-language / typhon

A virtual machine for Monte.
Other
67 stars 10 forks source link

Return guards are second-class guards #215

Open MostAwesomeDude opened 4 years ago

MostAwesomeDude commented 4 years ago

It's not quite possible to do, say, a such-that pattern on a return value. My case is something like:

def f(x :Guarded) ? (okay(rv)) { return x.do() }