2 ms·
It's not necessarily a "re-"throw. It could just be a throw of a newly detected error, like: try { if bad_thing { do yeet Error::new(.
by efaref 4y ago
It's not necessarily a "re-"throw. It could just be a throw of a newly detected error, like:
try {
if bad_thing {
do yeet Error::new(...);
}
carry_on()
}
Just plain "throw" would probably be fine, but I understand not wanting to bikeshed it at this stage.
Weirdly, "yeet" really does convey the sense of "just give up and chuck this thing back instead" that makes it a reasonable nice converse of "try", i.e. "try { yeet }".