4 ms·
limited usefulness - can't return from the trying function. incidentally, try/finally and returns are what gives people funny facial expressions.
by baq 12y ago
limited usefulness - can't return from the trying function. incidentally, try/finally and returns are what gives people funny facial expressions.
- manucorporat 12y agoyeah! I agree, it's just an experiment. Anyway, you could use the named return values to have a similar behaviour. func hello() (a int) { try.This(func() { a = couldPanic() }).Catch(_ try.E) { a = 0 }) }