News for hackers. Stuff that matters.
Re:What's better about Ruby than Python? - comp.lang.python by ojbyrne on Thursday August 26, 2010 @10:07PM (#1637814)
"Other syntax differences such as '@foo' versus 'self.foo', or the higher significance of case in Ruby vs Python"

...suddenly wonders if there's a language where both case and indentation are significant.

Re:What's better about Ruby than Python? - comp.lang.python by jmillikin on Friday August 27, 2010 @12:38AM (#1638008)
In Haskell, indentation is significant (Python-style), and case is used to separate values from various special names.

values, keywords: all lowercase modules, classes, types, constructors: initial capital

For example, it's impossible to declare a class named "string", or a value named "String".

Re:What's better about Ruby than Python? - comp.lang.python by eipipuz on Friday August 27, 2010 @03:17AM (#1638210)
I think he was talking about the "case" control structure. Or maybe I should just go to sleep... In any case, "case" returns a value, doesn't need breaks and doesn't need to be the same type. That's awesome.
Re:What's better about Ruby than Python? - comp.lang.python by regularfry on Friday August 27, 2010 @06:58AM (#1638459)
Given that the switch-case construct doesn't exist at all in Python, I'm pretty sure he was talking about character case.
Re:What's better about Ruby than Python? - comp.lang.python by cdavid on Friday August 27, 2010 @12:39AM (#1638009)
Haskell I believe