Can anyone think of something you can do (the same concept) that will throw an exception in #javascript and return a Result in #rustlang??
@awesomeintheory yeah i'd rather not have to pull in a crate if at all possible
-
-
@Carols10cents Might be tricky then, JavaScript core goes to great lengths to return unintuitive sentinel values over throwing an exception. -
@Carols10cents I would say that most instances of throwing an exception in JS are straight up type errors in Rust. - 8 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.