# Why Are Loop Variables Taken Literally?

**URL:** <https://revolt.metaeducation.com/forum/t/why-are-loop-variables-taken-literally/2625>\
**Category:** Questions\
**Created:** [December 30, 2025, 9:59am UTC](https://revolt.metaeducation.com/forum/t/why-are-loop-variables-taken-literally/2625 "2025-12-30T09:59:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![hostilefork](https://revolt.metaeducation.com/forum/user_avatar/revolt.metaeducation.com/hostilefork/32/421_2.png) [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Post date:** [December 30, 2025, 10:31am UTC](https://revolt.metaeducation.com/forum/t/why-are-loop-variables-taken-literally/2625/4 "2025-12-30T10:31:03Z")

</div>

> [@rebolbot](#):
>
> If it's confusing... why is it important to be offering the ability to unbind things via a dialected meaning of quoting? How often does that come up?

It's important.

The problem is that since the system takes all bindings seriously, there are many places where if you have something bound and it's not expected, you'll get an error.

For instance: any SET-WORD in a MAKE OBJECT! spec that has a binding creates a contradictory situation. You don't know if the person was intending an assignment to the specific word they composed in, or if a field was supposed to be created for it.

Having a lightweight way to say "don't bind this" really makes a difference in expressivity.

> [@rebolbot](#):
>
> ```plaintext
> >> for-each $var [a b c] [print [mold var "is" mold get var]]
> a is 10
> b is 20
> c is 30
> 
> >> var
> == 30
> 
> ```
> 
> That seems useful for performance (if nothing else).

Red changed this to be the default semantic. They didn't want to pay to deep walk and bind the loop body. Revolt doesn't deep walk the body and mutably bind it ([for all the reasons that's a bad idea](https://revolt.metaeducation.com/forum/t/ren-c-binding-in-a-nutshell/2614)) so it's not avoiding as much work. You do save on making a new variable, if you already had one on hand. 🤷‍♂️

So it's not really _that_ big a deal for performance. It's more stylistic, e.g. if you have code outside the loop body that expects to be able to operate on the item:

```
x: ()

helper: does [x + 1]

for-each $x [1 2 3] [helper]

```

Otherwise you'd have to pass the value explicitly:

```
helper: lambda [arg] [arg + 1]

for-each x [1 2 3] [helper x]

```

So in that sense you _can_ get some more efficiency and briefer code. It's a feature worth knowing about. But I think creating a new variable is the right default--and Red's choice is a mistake.

---

_[View the full topic](https://revolt.metaeducation.com/forum/t/why-are-loop-variables-taken-literally/2625)._
