News for hackers. Stuff that matters.
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):

    def some_method { ... }
    def some_method; ... end

    obj.something # "something" is allways a method
    # never a var, say accessor (getter, setter &c ...)
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.

Re:Ruby is beautiful (but I'm moving to Python) by clyfe on Sunday November 28, 2010 @04:17PM (#1948328)
indeed, you are right