Rust Error Handling

Error handling is hard rusts error handling is substantially different from other languages. For a quick comparison let’s look at a python example: try: # code that fails except: # what happens when code fails This approach, although intuitive, leaves some important flaws. Namely: Unhandled errors may occur Errors are propagated implicitly, not explicitly, which can lead to some unwanted behavior If your try-block ends up containing multiple parts of code that could fail you have to handle each of them separately How rust handles errors If you have used rust before you’ll already know what comes up....

May 5, 2024 · Moritz Sokoll

Hugo

What is hugo? Hugo is a static site generator written in go. It is the main program powering this website. Being a static site generator what it does is read a bunch of markdown files and some theme and configuration files as input and produce a fully static website as output. This makes it great for personal websites and especially blogs where you don’t have to deal with user-generated content....

April 14, 2024 · Moritz Sokoll