# \#maybe

**URL:** https://erlangforums.com/tag/maybe/553.md

[Latest](https://erlangforums.com/latest.md) · [Categories](https://erlangforums.com/categories.md) · [Tags](https://erlangforums.com/tags.md)

---

## [Maybe and when](https://erlangforums.com/t/maybe-and-when/3622)

<div class="topic-metadata">

**Author:** [@meox](https://erlangforums.com/u/meox)\
**Replies:** 5\
**Last updated:** [May 15, 2024, 12:13pm UTC](https://erlangforums.com/t/maybe-and-when/3622 "2024-05-15T12:13:44Z")

</div>

I started using maybe in my codebase. I have this kind of code: discover\_iface\_type(Ifname) -\> maybe {ok, Device} ?= validate\_input:device(Ifname), {ok, DevInfo} ?= ip\_addr\_dev\_info(Device), …

---

## [Why I should use \`maybe\` instead of \`try-catch\`?](https://erlangforums.com/t/why-i-should-use-maybe-instead-of-try-catch/3484)

<div class="topic-metadata">

**Author:** [@okaprinarjaya](https://erlangforums.com/u/okaprinarjaya)\
**Replies:** 2\
**Last updated:** [April 12, 2024, 7:34am UTC](https://erlangforums.com/t/why-i-should-use-maybe-instead-of-try-catch/3484 "2024-04-12T07:34:50Z")

</div>

Hi Everyone, I just started learning Erlang, I using Erlang/OTP 26. I learn to use maybe syntax. And my feelings is that it’s the same as feel when using try-catch. So the questions is Why we should use maybe syntax? W…

---

## [How to enable maybe\_expr?](https://erlangforums.com/t/how-to-enable-maybe-expr/2154)

<div class="topic-metadata">

**Author:** [@ricardobocchi](https://erlangforums.com/u/ricardobocchi)\
**Replies:** 4\
**Last updated:** [June 7, 2023, 12:05pm UTC](https://erlangforums.com/t/how-to-enable-maybe-expr/2154 "2023-06-07T12:05:05Z")

</div>

Hello everyone, I’m trying enable maybe feature on my project, but always get the error: {features\_not\_allowed, \[maybe\_expr,maybe\_expr\]} I’m using rebar3 and OTP 25.1.2 in my project and tried some things to enable th…
