3 ms·
"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 whe
by ojbyrne 16y ago
"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.
- jmillikin 16y agoIn 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".
- cdavid 16y agoHaskell I believe
- eipipuz 16y agoI 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.
- regularfry 16y agoGiven that the switch-case construct doesn't exist at all in Python, I'm pretty sure he was talking about character case.