Tim McNamara - 4 levels of error handling

  Рет қаралды 4,965

Rust Nation UK

Rust Nation UK

Ай бұрын

Rust's errors can be confusing. Strengthen your code one level at a time. Learn how to start with an easy path and grow as you knowledge increases. We start with 'good enough' approaches, then move towards something that's more idiomatic over time. This talk is highly interactive with lots of live coding and examples to follow. So grab your laptop and follow-along!

Пікірлер: 9
@sentrypeer
@sentrypeer Ай бұрын
Excellent talk!
@jeffg4686
@jeffg4686 19 күн бұрын
Wait, who's on first? Not a hit on the speaker, oc. It's just another part of rust that's a bit wonky atm.
@daniellundqvist2926
@daniellundqvist2926 29 күн бұрын
The lack of exceptions is a sign of quality. Exceptions should've never been a thing.
@ArmandoDoval
@ArmandoDoval 26 күн бұрын
Exceptions do their job well, they just don't work without garbage collection.
@julians.2597
@julians.2597 26 күн бұрын
@@ArmandoDoval they do not, why we still allow hidden control flow a la GOTO in our codebases several decades after decrying the very same for its faults is beyond me
@gfasterOS
@gfasterOS 24 күн бұрын
I think Rust's support for exceptions is well handled via panic_any. It's for truly performance critical code where any failure means aborting the whole task and only hot-path performance matters. You really barely ever want to use it, but it's available for the extremes.
@jangrant5171
@jangrant5171 23 күн бұрын
Exceptions work in C++ without GC. They also don't have to be "hidden"; the point of checked exceptions is that they represent exceptional cases that can arise even when using an API within its contract People make a fuss about checked exceptions (the initial Java class library didn't use them particularly well) but they're not dissimilar to specifying the Err side of a Result in terms of verbiage.
@fcv0ltec
@fcv0ltec 13 күн бұрын
Nothing wrong with exceptions. As any tool, can be used in right or wrong way. If you volunteer to shot your own leg and use them as goto (as mentioned in comments) nothing can help you, really. You will find your way with any tool you have. I’m new to rust, but error handling looks like a pain. Though, I have an impression I maybe missing something. It looks unnecessary complicated. In the most of the cases I would like to have just something generic were I just can return an error, all receiver needs to know is if that was failure or success. I do not want new types. I also want to be able to handle all library errors in the same way - again in the most of the cases I just want to know if things failed or not, do not need specifics. All in all, analogue of “throws Exception”, in Java world.
@KushLemon
@KushLemon Ай бұрын
The Scammer. 😂😂😂
Nicholas Matsakis - Rust 2024 and beyond
33:48
Rust Nation UK
Рет қаралды 10 М.
Rust Error Handling - Best Practices
21:33
Jeremy Chone
Рет қаралды 10 М.
顔面水槽がブサイク過ぎるwwwww
00:58
はじめしゃちょー(hajime)
Рет қаралды 88 МЛН
КАРМАНЧИК 2 СЕЗОН 4 СЕРИЯ
24:05
Inter Production
Рет қаралды 651 М.
Don’t run Proxmox without these settings!
25:45
Christian Lempa
Рет қаралды 20 М.
4 levels of Rust error handling
46:35
timClicks
Рет қаралды 8 М.
Heiko Seeberger - EventSourced - async_fn_in_trait in anger
38:01
Rust Nation UK
Рет қаралды 1,3 М.
Compiling MS-DOS 4.0 using DOSbox & Qemu
17:59
Neozeed
Рет қаралды 3,1 М.
Nikita Lapkov - Type-safe and fault-tolerant mesh services with Rust
30:22
Amanieu D'Antras - The path to a stable ABI for Rust
56:17
Rust Nation UK
Рет қаралды 2,8 М.
Alice Ryhl - What it takes to keep Tokio running
20:28
Rust Nation UK
Рет қаралды 3,2 М.
Async Rust Is A Bad Language | Prime Reacts
28:46
ThePrimeTime
Рет қаралды 82 М.
Nicholas Yang - Porting Turborepo From Go To Rust
27:07
Rust Nation UK
Рет қаралды 2,7 М.
What % of charge do you have on phone?🔋
0:11
Diana Belitskay
Рет қаралды 288 М.
APPLE УБИЛА ЕГО - iMac 27 5K
19:34
ЗЕ МАККЕРС
Рет қаралды 87 М.
❌УШЛА ЭПОХА!🍏
0:37
Demin's Lounge
Рет қаралды 323 М.
The PA042 SAMSUNG S24 Ultra phone cage turns your phone into a pro camera!
0:24
How To Photo color Adjismint In Tutorial
0:40
Nadeem HD Tech
Рет қаралды 104 М.