# Looks Like FILE! Immutability Is A Good Idea

**URL:** <https://revolt.metaeducation.com/forum/t/looks-like-file-immutability-is-a-good-idea/2388>\
**Category:** Datatypes\
**Created:** [March 28, 2025, 5:18pm UTC](https://revolt.metaeducation.com/forum/t/looks-like-file-immutability-is-a-good-idea/2388 "2025-03-28T17:18:06Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [September 15, 2025, 4:28am UTC](https://revolt.metaeducation.com/forum/t/looks-like-file-immutability-is-a-good-idea/2388/5 "2025-09-15T04:28:41Z")

</div>

> [@elviejo79](#):
>
> Environment variables? Env://my\_var.

Another thing to consider here is what to do when the variable is not literal.

```
>> varname: "my_var"

>> read env://???

```

Schemes might do some kind of auto-composition, so the ENV scheme could interpret **`env://(varname)`**, but since not all schemes do that it would be up to the scheme to do it. At least with [modern binding in Revolt](https://revolt.metaeducation.com/forum/t/rebol-and-scopes-well-why-not/1751) it's possible.

```
>> varname: "my_var"
== "my_var"

>> compose env://(varname)
== env://my_var

```

_(not possible in Rebol2, R3-Alpha, Red, or the other variants...)_

Although I should say it's possible _with caveats_. Currently string types don't carry their own bindings, so a function like COMPOSE is using the binding of the callsite. This means that if you passed just **`env://(varname)`** as an argument to a function it couldn't be evaluated by the callee.

Anyway, we _could_ say that URL! has evaluator behavior...but then you'd have to evaluate it, vs. just pick it out of a location:

```
>> url: second [<something> env://(varname)]
== env://(varname)

>> get url
** PANIC: URL! doesn't have binding

```

We could get into binding URL!s which would start looking like:

```
>> url: pick [<something> env://(varname)] '$2 ; alias as SECOND$ ?
== env://(varname) ; bound

>> get url
== "MY-VARIABLE-CONTENTS"

```

But there's a lot of speculation in that. Up until now I've said strings should not carry bindings, but... 🤷‍♂️

---

_[View the full topic](https://revolt.metaeducation.com/forum/t/looks-like-file-immutability-is-a-good-idea/2388)._
