Another semantic for the SET keyword enabling it to handle this could be an option like:
SET theVar = theValue, theVar1 = theValue1, ... theVarN = theValueN
Much like the LOCAL keyword does but just setting the new value of an already created local or global variable.
For properties nothing changes.
SET the property TO value -- Still use TO for properties
------ What's the difference? ----
Code: Select all
# Old Syntax
PUT 54.3 INTO X
PUT X * 17 INTO Y
PUT Y / 4 INTO Z
# Proposed alternative syntax/semantics
SET X = 54.3, Y = X * 17, Z = Y / 4
# Commas starts new attributions, and at end of a line, triggers continuation on the next line,
# and you can do this if you wish:
SET X = 54.3,
Y = X * 17,
Z = Y / 4
--Less verbose, a bit more clear to follow the sequence.