|
You are here |
initialcommit.com | ||
| | | | |
andreabergia.com
|
|
| | | | | Error handling is a fundamental aspect of programming. Unless you are writing hello world, you will need to handle errors in your code. In this post, I will discuss a bit the most common approaches used by various programming languages. Return error codes This is one of the most ancient strategies - if a function can fail, it can simply return an error code - often a negative number, or null. | |
| | | | |
ashtonkemerling.com
|
|
| | | | | [AI summary] An engineer explains how their team used the functional programming concept of Either in a Java library to eliminate if statements and improve code safety. | |
| | | | |
www.codaris.com
|
|
| | | | | [AI summary] The author argues that unchecked exceptions in languages like Python and JavaScript are superior for error recovery compared to returned errors in Rust and Go, emphasizing flexibility and maintaining software encapsulation. | |
| | | | |
nora.codes
|
|
| | | [AI summary] The article explains the concept of 'unsafe' in Rust, clarifying that it allows specific low-level operations while maintaining overall memory safety through the language's type system and safe abstractions. | ||