Change variable binding syntax #170
Labels
component: compiler
Concerning the compiler
meta: triaged
Has the issue been triaged yet?
skill: mercury
status: resolved
Changes merged (sometimes with edits and not always through the github UI).
type: enhancement
Milestone
At the moment variable bindings allow a variable to be available after branching control flow if all paths either bind it or return early (not implemented):
But it was pointed out to me that this is unintuitive, by more than one
person. In my own experience this is okay (it's how Mercury works, and no
one seems to worry about it / notice it there). But it seems I have some biases and instead we'll implement it as:
And track that work in this bug.
The text was updated successfully, but these errors were encountered: