I’d say this is definitely a wtf. Tuples should have never been given Foldable instances and I’d immediately reject any code that uses it in code review.
I actually didn’t know, so TIL. Not surprising since common wisdom is that a lot of the type class instances for Doubles are pretty weird/don’t make a lot of sense. Just like in any language, floating point needs special care.
This is jjust expected syntax and not really a wtf at all. It’s very common for languages to require whitespace around operators.
Agreed as wtf, the NegativeLiterals should be on by default. Just would be a pretty significant breaking change, unfortunately
Not a wtf… What would you expect to happen? That operation is not well-defined in any language
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
Posts must be relevant to programming, programmers, or computer science.
No NSFW content.
Jokes must be in good taste. No hate speech, bigotry, etc.
For Haskell:
I’d say this is definitely a wtf. Tuples should have never been given Foldable instances and I’d immediately reject any code that uses it in code review.
I actually didn’t know, so TIL. Not surprising since common wisdom is that a lot of the type class instances for Doubles are pretty weird/don’t make a lot of sense. Just like in any language, floating point needs special care.
This is jjust expected syntax and not really a wtf at all. It’s very common for languages to require whitespace around operators.
Agreed as wtf, the
NegativeLiterals
should be on by default. Just would be a pretty significant breaking change, unfortunatelyNot a wtf… What would you expect to happen? That operation is not well-defined in any language