# Should we eventually improve catch&throw semantics?

**URL:** <https://erlangforums.com/t/should-we-eventually-improve-catch-throw-semantics/1210>\
**Category:** Proposals: Ideas\
**Tags:** syntax\
**Created:** [March 14, 2022, 7:28am UTC](https://erlangforums.com/t/should-we-eventually-improve-catch-throw-semantics/1210 "2022-03-14T07:28:09Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![elbrujohalcon](https://erlangforums.com/user_avatar/erlangforums.com/elbrujohalcon/32/241_2.png) [@elbrujohalcon](https://erlangforums.com/u/elbrujohalcon)\
**Post date:** [March 14, 2022, 10:00am UTC](https://erlangforums.com/t/should-we-eventually-improve-catch-throw-semantics/1210/6 "2022-03-14T10:00:09Z")

</div>

On the other hand, at least in my experience, the name `throw` may discourage its use for non-local returns, but at the same time, it _encourages_ its use for exceptions. Which is the main problem I usually face: People trying to _throw_ exceptions using `throw` as they do in Java, C#, etc., instead of using `error`, `raise`, or `exit` (which are the ones meant to be used for that in Erlang).

---

_[View the full topic](https://erlangforums.com/t/should-we-eventually-improve-catch-throw-semantics/1210)._
