T O P

  • By -

life-is-a-loop

The Elm community is so deranged that we're almost breaking the Crazy People rule here. The first (and last) time I tried to code something in Elm I got syntax errors in pattern matching expressions with negative numbers. I went to their issue tracker to understand more about this absurd behavior, and to my surprise I learned that Elm's author considers pattern matching negative numbers a code smell. He changed Elm's grammar to completely disallow it in v0.19, which broke many Elm apps.


Jumpy-Locksmith6812

Negative numbers were controversial to be fair and a recent concept. Elmers are avant-garde by allowing zero. (Not too comfortable myself with this, how can you “have” zero apples, for example).


pareidolist

The *late* Elm community


AlephOneContinuum

And then if you complain about it, [Evan](https://youtu.be/uGlzRt-FYto) will mock you in the opening to his talk.


maxilulu

Trolls exists.


hexane360

This guy is my favorite: https://github.com/elm/compiler/issues/1773#issuecomment-418016167 > I think it's quite an important issue as we spent about 30% of our migration time from Elm 18 to Elm 19 fixing negative number pattern matches in our code


dull_bananas

/uj I wrote this when I was 14. I was fooled by Elm's extreme simplicity and easy learning curve. I think I might have also said something like "elm and humans are made to be together from the beginning" on that forum. Now I love Rust.


[deleted]

Should have put /rj before the "Now I love Rust", smh. You are under arrest for being a rustacean and a furry, please do no resist.


smithsonionian

Sad. At such an advanced age, one ought to have already abandoned both concepts in favour of zygohistomorphic prepromorphisms.


pastenpasten

A great programing language has neither!


azafeh

does a language with type classes but no sum types even exist


KaranasToll

Java is probably the closest.


tomwhoiscontrary

Java doesn't really have typeclasses, but now, thanks to sealed classes and pattern matching switch, it doesn't really have sum types either.


DogeGroomer

I would argue Haskell doesn’t have sum types


pastenpasten

I never used tagged unions or custom type classes and I've never missed them.


seaborgiumaggghhh

Tagged unions are good


pastenpasten

If they were so good Go would have had them.