Added a unary '+' operator (+variable) to provide symmetry with the unary '-' operator (-variable). These operators are supported by most languages, so makes sense to include. Although unary '+' is effectively a NOP, it provides clarity in coding situations where want to contrast with the negation, where one may have code applying + and - to some magnitude.
Added a unary '+' operator (
+variable
) to provide symmetry with the unary '-' operator (-variable
). These operators are supported by most languages, so makes sense to include. Although unary '+' is effectively a NOP, it provides clarity in coding situations where want to contrast with the negation, where one may have code applying + and - to some magnitude.In scripting often have symmetric rules, such as:
Having + and - magnitude clarifies the rules for us.