xtfc / mold

A fresh (ironic? maybe!) approach to project chores.
https://xtfc.org/mold
MIT License
7 stars 0 forks source link

Add a "var default value" statement #128

Closed scizzorz closed 4 years ago

scizzorz commented 4 years ago

Sometimes it's helpful to set a default value for a variable that can be overridden if set outside of mold, eg:

$ export FOO=bar
$ mold foo

At the moment, I think something like this could suffice:

var FOO := "foo"

but open to other ideas.