# Statements as expressions

**URL:** <https://es.discourse.group/t/statements-as-expressions/894>\
**Category:** 💡 Ideas\
**Created:** [July 28, 2021, 3:46am UTC](https://es.discourse.group/t/statements-as-expressions/894 "2021-07-28T03:46:17Z")\
**Posts on this page:** 1\
**Showing post:** 29

<div class="post-metadata">

**Author:** ![7ombie](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/7ombie/32/1631_2.png) [@7ombie](https://es.discourse.group/u/7ombie)\
**Post date:** [February 2, 2023, 1:32pm UTC](https://es.discourse.group/t/statements-as-expressions/894/29 "2023-02-02T13:32:44Z")

</div>

This proposal is much more pragmatic than do-expressions.

I've [just proposed a very similar syntax for IIFEs](https://es.discourse.group/t/iife-statements-expressions/1606) that uses `do function`, `do async` and `do =>` (and possibly `do class`).

Slightly off topic, but isn't the following grammar dependent on significant whitespace?

```plaintext
const result = match (v) {
    ...
}

```

How would this parse?

```plaintext
const result = match(v)
{ 
    ...
}

```

---

_[View the full topic](https://es.discourse.group/t/statements-as-expressions/894)._
