On 2006-06-14, Akim Demaille akim@lrde.epita.fr wrote:
x = event_x & y = event_y
->
(x, y) = (event_x, event_y)
likewise for updates and so forth.
Why not. But is this really necessary? IMHO it's more intelligible in the former version than in the later with tuples.
Also, although I have not really thought in depth about this, but it seems to me that there cannot be a formula, a module, and a variable bearing the same name. Therefore, for consistency, and for a lighter syntax, it might make more sense to use [] for the range, and () for the accesses? Say
s[x][y] '= ...
would be
s(x, y) '= ...
Oh no please :) This is utterly ugly!