3 ms·
Exactly! Syntax matters! Haskell's syntax is radically different because it matters that it is. It's not different to obfuscate or be obstructionist. It's di
by chowells 13y ago
Exactly! Syntax matters!
Haskell's syntax is radically different because it matters that it is. It's not different to obfuscate or be obstructionist.
It's different because it's better, for the features of the language. Function application via whitespace is a key feature to make automatic currying pleasant. Automatic currying is a key feature to make partial application pleasant. The patterns continue.
Haskell's syntax wasn't chosen by throwing darts at a dartboard. It wasn't chosen to upset C programmers. It was chosen to optimize simplicity and clarity of code that uses the language.
It missed the mark occasionally, but overall it did a good job. Syntax does matter, and Haskell is proof that using higher levels of abstraction benefits greatly from syntax that encourages it.
- eru 13y agoHistorically, most of Haskell's syntax was chosen to be similar to other functional languages existing at the time. I don't know where ML---the grandsire of Haskell's family of languages---got its syntax from in the first place.