Обложка канала

Библиотека мобильного разработчика

Полезные материалы по всему, что может быть интересно мобильному разработчику.

Библиотека мобильного разработчика

4 года назад
Открыть в
Моделирование ошибок в Swift Основы + 3 практических приема: — Define errors out of existence — Mask exception — Error aggregation https://proglib.io/w/c0e42dce
Modeling errors in Swift

The new Swift Concurrency feature doesn’t only bring new opportunities for writing safer and more maintainable async code but also changes the way we handle errors. I didn’t use throw-catch keywords too much in my legacy code because usually, I had a completion callback with the Result type handled by the switch operator. This week we will talk about modeling error types and how we will address them in Swift with throw-catch keywords.

Swift with Majid