3 ms·
So your point is that these ways of thinking are unachievable without a syntax filled with WTFs? I'm no expert on functional languages like Haskell or Erlang, b
by swombat 18y ago
So your point is that these ways of thinking are unachievable without a syntax filled with WTFs? I'm no expert on functional languages like Haskell or Erlang, but somehow that doesn't ring true to me. There's gotta be a way to create languages that provide new ways of thinking while maintaining a clear syntax. Ruby (sorry, that language again), for example, provides a number of functional language features with a very clear syntax.
- jrockway 18y agoI don't think any of Haskell's syntax is intrinsically unclear. If you read the article, you'll notice that most of the WTFs are things like "oh, I never though of abstractions like monads, functors, etc." There is one about the indentation thing, but honestly, braces are probably a WTF to people that only know Python.
- swombat 18y agoGood to hear. I haven't really had the time to look into Haskell (or Erlang, for that matter). Some day, perhaps...
- eru 18y agoHe also said something about backticks. But they are easy, too.
- jimbokun 18y agoI have a hard time figuring out precedence relations when looking at Haskell code. I can't always figure out which are the functions, which are the arguments, and which are the functions passed as argument. The fact that Haskell does not have any punctuation to denote function application obviously has something to do with this.
- brl 18y agoYou don't need syntax for that. Regular function application has the highest precedence and functions always have exactly one argument.
- brl 18y agoThe syntax in Haskell is very easy, in fact there is much less of it than in Ruby.