Bolt icon indicating copy to clipboard operation
Bolt copied to clipboard

Allow for deferred assignment

Open samvv opened this issue 2 years ago • 0 comments

As discussed in issue #42, it should be possible to omit the body of a variable expression and only have it assigned later in the program.

Eventually, this will require a program that can track the control-flow of Bolt source code, as in the following example:

let foo : Int

if toss.
  foo = 1 # branch 1
else.
  foo = 2 # branch 2

foo # correct: both branches assigned a value

samvv avatar Jun 02 '23 18:06 samvv