[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Ruby Whitespace Semantics

Jim Freeze

2/27/2006 3:06:00 PM

Matz has said that

a = (4
+5)

will be supported in 1.9.

--
Jim Freeze
5 Answers

MenTaLguY

2/27/2006 4:53:00 PM

0

Quoting Jim Freeze <jim@freeze.org>:

> 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


Mark Wilden

2/27/2006 6:59:00 PM

0

<mental@rydia.net> wrote in message
news:1141059171.44032e636f879@www.rydia.net...

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

It should be a syntax error.


Logan Capaldo

2/27/2006 7:09:00 PM

0


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

> <mental@rydia.net> wrote in message
> news:1141059171.44032e636f879@www.rydia.net...
>
>> Hmm. What about
>> a = ( 4 ; + 5 )
>
> It should be a syntax error.

Why? The semantics seem perfectly clear.

MenTaLguY

2/27/2006 7:48:00 PM

0

Quoting Mark Wilden <mark@mwilden.com>:

> >Hmm. What about
> > a = ( 4 ; + 5 )
>
> It should be a syntax error.

Ruby has an unary +...

-mental


Hal E. Fulton

2/28/2006 12:31:00 AM

0

Mark Wilden wrote:
> <mental@rydia.net> wrote in message
> news:1141059171.44032e636f879@www.rydia.net...
>
>
>>Hmm. What about
>>a = ( 4 ; + 5 )
>
>
> It should be a syntax error.

Why/how?


Hal