A short introduction to `maybe_expr` in Erlang

I am a huge fan of functional programming and recently discovered the maybe expression in Erlang. In the blog post I show an example of code I refactored recently using maybe, how to enable the expression in OTP 25 (and up), and compare it to a language feature in Haskell (ExceptT).

2 Likes

Nice to see more Erlang blog posts out there!

Btw, in case you weren’t aware if you paste the URL into the title field (before you do anything else on thread creation) the system will use that URL as the featured link, which is what will then show on our homepage and portals without the rel-nofollow tag :smiley: Once it displays in the body of the post that means it has registered and you can then change the title to whatever you like. I’ve added it to this thread for you :023:

Awesome, thanks for the info! I am very hopeful to start writing more of my Erlang journeys.

1 Like