"try coalescing" / catch operator
bbrk24 opened this issue · comments
Some operator shorthand for try/catch:
x = foo() op bar()
// vvv
try {
x = foo()
} catch {
x = bar()
}
Suggested spellings for the operator (from Discord) include catch
(with implicit try
) and !!
(to mirror ??
). Precedence should be lower than function application.