# Guarded Declarations (const / let … else …)

**URL:** <https://es.discourse.group/t/guarded-declarations-const-let-else/2479>\
**Category:** 💡 Ideas\
**Tags:** proposal\
**Created:** [December 19, 2025, 6:22pm UTC](https://es.discourse.group/t/guarded-declarations-const-let-else/2479 "2025-12-19T18:22:08Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Scarafone](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/scarafone/32/2589_2.png) [@Scarafone](https://es.discourse.group/u/Scarafone)\
**Post date:** [December 29, 2025, 8:06pm UTC](https://es.discourse.group/t/guarded-declarations-const-let-else/2479/8 "2025-12-29T20:06:56Z")

</div>

Replying to myself since I can’t edit the root post.

I also didn’t find this initially when looking, but it seems someone proposed a similar concept. [Try-catch oneliner - #2 by jridgewell](https://es.discourse.group/t/try-catch-oneliner/107/2) . I think I had this in mind initially when proposing mine, but I wanted to avoid introducing new keywords like `guard`. But I did think about this.

---

_[View the full topic](https://es.discourse.group/t/guarded-declarations-const-let-else/2479)._
