5 ms·
You can do this: try somearray(outofboundindex)? // stuff else errorlog.write("some message") error end Sure you can make it propogate a
by __red__ 1y ago
You can do this:
try
somearray(outofboundindex)?
// stuff
else
errorlog.write("some message")
error
end
Sure you can make it propogate all the way up if you really want, but ugh… what a terrible idea for instrumentation.
Pony doesn't force you to deal with errors a specific way. Pony forces you to make a choice so you can't just ignore it.
- ameliaquining 1y agoThat code is only allowed in a partial context, right? So if you don't propagate it all the way up the call stack, what do you do instead?