We've all been in situations where our code errors when we least expect it, blowing up our program and taking down production. It's natural, and totally normal! But it's also preventable.
Here's how Gleam does errors better.
Writer: Ben Peinhardt
__________________________________________
Check out my other socials!
🎮 Discord ▶ https://discordapp.com/invite/bWrctJ7
🐦 Twitter ▶ / isaacharrisholt
🖥️ Portfolio ▶ https://ihh.dev
📝 Blog ▶ https://isaacharrisholt.com
__________________________________________
Timestamps:
00:00 - Introduction and explanation
01:06 - A two pronged approach
01:44 - In case of emergency
02:35 - The `Result` type
03:54 - Handling errors
05:08 - Cleaning up with `use`
05:55 - Representing errors
#gleam #softwareengineer