10 ms·
re famous Elm error messages. This one I got when I was learning Elm 4-5 years ago. Elm uses a different name for the “not equal” operator: 5| text "H
by nymalt 3y ago
re famous Elm error messages. This one I got when I was learning Elm 4-5 years ago.
Elm uses a different name for the “not equal” operator:
5| text "Hello!" != "balbla"
^^
Switch to (/=) instead.
Note: Our (/=) operator is supposed to look like a real “not equal” sign (≠). I
hope that history will remember (!=) as a weird and temporary choice.
Wondering if it is just me, or it really is passive-aggressive? It was the first red flag for me.
upd: formatting
- 3836293648 3y agoThe note absolutely is, the use of `/=` is just consistent with Haskell though, which to me makes perfect sense.
- spokeonawheel 3y agoits fairly direct. And not wrong. Passive aggressive might be like this "there are some languages that feel the need to use !=. They have the 'opinion' that this was a good idea, look at them. They are so cute trying to be a real language with such *interesting* design choices"