X=1,2;X will assign X=1 and then create a stream (),2, so the output of this is 1. X=(1,2) work as expected.
This should either assign both 1 and 2 to X, or forbid the construction altogether. X = 1,2, X = 1 , 2, and X = 1, 2 should do the same thing as X=1,2.
A few possible solutions:
X=1,2;Xwill assign X=1 and then create a stream(),2, so the output of this is1.X=(1,2)work as expected.This should either assign both 1 and 2 to X, or forbid the construction altogether.
X = 1,2,X = 1 , 2, andX = 1, 2should do the same thing asX=1,2.A few possible solutions:
()cannot be a value. This might be a wonderful idea, but we still need something more targeted to tell the user that X=1,2 isn't doing what it looks like it should.