Skip to content

Commit

Permalink
Partly address #299
Browse files Browse the repository at this point in the history
  • Loading branch information
aphillips committed Sep 4, 2023
1 parent 296c87b commit da944d0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions exploration/variable-mutability.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ _What use-cases do we see? Ideally, quote concrete examples._
> when * {You received {$count} messages on {$date}}
> ```
- Implementers need to know what value is associated with a named variable, see #299.

## Requirements

_What properties does the solution have to manifest to enable the use-cases above?_
Expand Down Expand Up @@ -154,6 +156,18 @@ on an external variable that does not exist.
> modify $external = {$external :transform adding=annotation}
> ```
When more than one `modify` declaration applies to the same named variable,
or when a `modify` declaration is applied to a local variable
defined in a `let` declaration,
the named variable behaves as if each declaration were called
in the sequence in which they appear in the message.
Implementations are not required (by this design, anyway)
to resolve values in a greedy manner.
They might not resolve a value unless it is actually used in a selector
or in a placeholder.

#### Sigil Choice for Local Variables

The choice here of `@_` as the local variable sigil is probably not distinctive enough.
It is probably okay to be a little inconvenient with local variable naming
as these are less common than external variables.
Expand Down

0 comments on commit da944d0

Please sign in to comment.