Re: Ruby Whitespace Semantics

Matz has said that

a = (4
+5)

will be supported in 1.9.

Quoting Jim F. [email protected]:

Matz has said that

a = (4
+5)

Hmm. What about

a = ( 4 ; + 5 )

?

I won’t be heartbroken if it isn’t, but I’m just wondering about the
implications for the grammar…

-mental

[email protected] wrote in message
news:[email protected]

Hmm. What about
a = ( 4 ; + 5 )

It should be a syntax error.

On Feb 27, 2006, at 2:03 PM, Mark W. wrote:

[email protected] wrote in message
news:[email protected]

Hmm. What about
a = ( 4 ; + 5 )

It should be a syntax error.

Why? The semantics seem perfectly clear.

Quoting Mark W. [email protected]:

Hmm. What about
a = ( 4 ; + 5 )

It should be a syntax error.

Ruby has an unary +…

-mental

Mark W. wrote:

[email protected] wrote in message
news:[email protected]

Hmm. What about
a = ( 4 ; + 5 )

It should be a syntax error.

Why/how?

Hal