Тёмный
No video :(

Tim McNamara - 4 levels of error handling 

Rust Nation UK
Подписаться 5 тыс.
Просмотров 6 тыс.
50% 1

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!

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
13 дней назад
Unwraps aren't bugs, they're unhandled errors. When you start writing Rust, you write programs for yourself and when invalid input is passed, you just use the panic report for info. You don't fix "the bug" for unwraps, you handle the error to remove them.
@toadtws
@toadtws 3 месяца назад
Giving a talk is not easy, and the best delivery comes when you plan ahead and know exactly what you’re going to say and demonstrate. I think this one would have benefited from more prep, and less wandering around in the editor dealing with irrelevant compiler errors.
@timClicks
@timClicks 11 дней назад
100% It would have been nice to have had more than 2h of notice before talking, but sometimes you get asked to fill in a slot for a speaker who pulled out.
@sentrypeer
@sentrypeer 4 месяца назад
Excellent talk!
@jeffg4686
@jeffg4686 4 месяца назад
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.
@daniel29263
@daniel29263 4 месяца назад
The lack of exceptions is a sign of quality. Exceptions should've never been a thing.
@ArmandoDoval
@ArmandoDoval 4 месяца назад
Exceptions do their job well, they just don't work without garbage collection.
@julians.2597
@julians.2597 4 месяца назад
@@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 4 месяца назад
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 4 месяца назад
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 4 месяца назад
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 4 месяца назад
The Scammer. 😂😂😂
Далее
Nicholas Matsakis - Rust 2024 and beyond
33:48
Просмотров 12 тыс.
БАБУШКА УМЕЕТ ВОДИТЬ?? #shorts
00:32
Просмотров 363 тыс.
Кого из блогеров узнали?
00:10
Просмотров 676 тыс.
Constructors Are Broken
18:16
Просмотров 106 тыс.
Tim McNamara - Unwrapping unsafe
33:03
Просмотров 3 тыс.
Data Types - Part 3 of Idiomatic Rust in Simple Steps
25:05
The secret to making Golang error handling a breeze
13:46
Jon Gjengset - Towards Impeccable Rust
55:59
Просмотров 27 тыс.
Golang Error Handling Is Better Than You Think!
18:53
Rust Error Handling - Best Practices
21:33
Просмотров 19 тыс.
Alice Ryhl - What it takes to keep Tokio running
20:28
Просмотров 4,1 тыс.
Async Rust Is A Bad Language | Prime Reacts
28:46
Просмотров 94 тыс.
БАБУШКА УМЕЕТ ВОДИТЬ?? #shorts
00:32
Просмотров 363 тыс.