DEV Community

Discussion on: Relearn You a Haskell (Part 1: The Basics)

Collapse
 
antonrich profile image
Anton

not True -- comments come after two hyphens

instead of the bang operator (!==) it uses (/=) operator for not True in comparison.

Collapse
 
awwsmm profile image
Andrew (he/him)

Right! That's another idiosyncrasy of Haskell that I neglected to mention.

Collapse
 
joshcheek profile image
Josh Cheek

I'm fine with it. SQL's not-equal-to operator is <> things like that really don't matter. It's like being upset about single quotes vs double quotes. If you think that's annoying, then you should absolutely learn Haskell, because you're focused on aesthetics instead of big picture implications, and Haskell will force you to learn better ways of thinking about the big picture.

Most of the problems that most of us have are simply difficult and frowned upon in Haskell.

Thread Thread
 
awwsmm profile image
Andrew (he/him)

I think maybe you misunderstood what one of us said. All we did was note that the "not equals" operator is different than the "normal" one in Haskell. Which is a good thing to know whether you're focused on aesthetics or not.

Thread Thread
 
drbearhands profile image
DrBearhands

While I get what you're saying, the normal not-equal symbol is . So calling it an idiosyncrasy sounds like c-style bias, as Haskell's version is closer to the mathematical symbol.