On Fri, 16 Mar 2001, Mathieu Bouchard wrote:

> 
> Ruby supports:
> 
> [
> 	42,
> 	21,
> 	7,
> ]
> 
> but not:
> 
> [
> 	42
> 	,
> 	21
> 	,
> 	7
> ]
> 
> is this correct? is this desirable?

Yes, it is part of the algorithm for "not needing semicolons to terminate
statements all the time" because the end of the line terminates
the statement/expression, unless it 'obviously' shouldn't.

I suspect that changing this for arrays would:
    add complexity to the parser, for negligable benefit[?]
    slow things down,

but one could experiment....
> 
> matju
> 
> 
	Hugh