Why Ruby?

Ellery Newcomer ellery-newcomer at utulsa.edu
Sat Dec 11 06:04:30 PST 2010


On 12/11/2010 12:12 AM, Nick Sabalausky wrote:
>
> I can definitely see in Ruby how the designer was trying for a "natural
> language/thought-process" feel, but it just ends up feeling
> sloppily-designed. I never feel completely confident that what I write is
> actually going to get parsed as I intended.

First time I used ruby, I did something like

a = 1 * (4
          + 5
          + 6)

cuz you can do that in python and you would expect ruby to be similar.
So I scratched my head for about an hour trying to figure out why a was 
always 6. I don't know why, but ruby ignores the 4 and 5 unless they are 
all on the same line.

That was about the last time I used ruby.


More information about the Digitalmars-d mailing list