These utilities serve as a replacement for assignVar/Final/Const which
have an inverted responsibility - the variable is told about it's
assignment, rather than an assignment being told about the variable it
is assigned to. Unifies the interaction with Expression.assign.
Use named instead of positional optional arguments. Add an optional
argument for a late prefix for the final and var declarations. Const
variables may not be late.
Will deprecate the assign* methods in a followup after doing some
cleanup of internal usage.
Closes #343
These utilities serve as a replacement for
assignVar/Final/Const
which have an inverted responsibility - the variable is told about it's assignment, rather than an assignment being told about the variable it is assigned to. Unifies the interaction withExpression.assign
.Use named instead of positional optional arguments. Add an optional argument for a
late
prefix for the final and var declarations. Const variables may not belate
.Will deprecate the
assign*
methods in a followup after doing some cleanup of internal usage.