"Data blocks" syntax specification draft
On 23/05/2018 14:56, Chris Angelico wrote:
> Perfect! Now let's try that with other types.
> Tuple of three: 1, 2, 3 or 1, 2, 3,
Not requiring any bracketing is poor IMO.
If you wanted the tuple to co-exist with any other thing in an
expression, rather than being the only thing the expression comprises,
then you will run into problems. Try adding two tuples:
1, 2, 3 + 4, 5, 6
This in fact gives you 1,2,7,5,6 rather than 5,7,9. (I don't know if
tuples can actually be added like this, but the point is clear.)