Here is something in Haskell which is confusing/bothering me right now.
What magic do the parenthesis do exactly?
Conversation
Replying to
`, conversely, transforms prefix into infix:
4 `elem` [3, 4, 5] # => True
Replying to
I found this eventually, but thanks :O The asymmetry here is weird to me.
1
Agreed that it’s weird. I suspect the asymmetry is necessary to avoid ambiguous parses.
Replying to
Part of what attracts me to Functional is "we got rid of all the 'syntax', it's all just functions!"
1
That’s way, way more true in Lisp than Haskell. :|
3
Show replies
Replying to
And haskell seems to treat that as an opportunity "now we can add a whole bunch of syntax in to offset what we pulled!"

