Re:Ruby is beautiful (but I'm moving to Python)
by clyfe on Sunday November 28, 2010 @04:07PM
(#1948304)
Ruby can use both "{...}" and "do ... end", with a slight difference between the two (precedence):
[ Parent
| on HN ]
Re:Ruby is beautiful (but I'm moving to Python)
by axod on Sunday November 28, 2010 @04:15PM
(#1948318)
Having optional beauty isn't really any beauty at all though.
I'm just more at home with exact, specific concise well structured syntax.
I know it's an extremely unpopular opinion to hold, especially round these parts, but I don't see any beauty in Ruby syntax. Same with Python...
Re:Ruby is beautiful (but I'm moving to Python)
by steveklabnik on Sunday November 28, 2010 @04:10PM
(#1948312)
def cannot have {}, it needs ;/end.
{} or do/end work for blocks, however.