# \[Need Champion\] Catch guards

**URL:** <https://es.discourse.group/t/need-champion-catch-guards/1698>\
**Category:** 🦋 Proposals\
**Created:** [April 22, 2023, 7:45pm UTC](https://es.discourse.group/t/need-champion-catch-guards/1698 "2023-04-22T19:45:45Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![rafageist](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/rafageist/32/2200_2.png) [@rafageist](https://es.discourse.group/u/rafageist)\
**Post date:** [September 6, 2024, 1:51pm UTC](https://es.discourse.group/t/need-champion-catch-guards/1698/6 "2024-09-06T13:51:59Z")

</div>

That would be more in line with typescript, but not javascript because | is the binary OR operator. Instead you can see a proposal closer to the ECMA specifications

[Universal and conditional catch blocks with the new when keyword](https://es.discourse.group/t/universal-and-conditional-catch-blocks-with-the-new-when-keyword/2122)

---

_[View the full topic](https://es.discourse.group/t/need-champion-catch-guards/1698)._
