Create an infix version of setVar and consider renaming newVar in Indigo
Clarification and motivation
To resemble more other imperative languages it would be nice to have an infix version of setVar
and perhaps renaming newVar
.
For example currently the only syntax that can be used is:
a <- newVar 1
setVar a 2
but it would be nicer to have something like:
a <- new 1
a := 2
Note that new
and :=
are only examples, however they are also my suggestion.
Acceptance criteria
-
setVar
has an infix version -
newVar
has a more generic-looking name or an explanation against this
Edited by Pinto Pasquale