Budgie allows for creating variables with the
variable command. It requires the variable name, the type of the variable, and an optional default value.
Pythonic languages such as Python and Ruby will skip declaring variables without a default value.
comment line : Simple declarationsvariable : foo stringvariable : bar number 7comment line : Assignmentsvariable : qux string foovariable : baz number barcomment line : Interesting valuesvariable : quux number infinityvariable : corge boolean true
// Simple declarationsstring foo;double bar = 7;// Assignmentsstring qux = foo;double baz = bar;// Interesting valuesdouble quux = double.PositiveInfinity;bool corge = true;
# Simple declarationsbar = 7# Assignmentsqux = foobaz = bar# Interesting valuesquux = infcorge = True
As you saw from the interesting values above, some types such as infinity or true/false have aliases per language.
Built-in types will always be lower-case in Budgie. Uppercase types will always refer to user-defined classes.