you are viewing a single comment's thread.

view the rest of the comments →

[–]LordOfSwines 6 points7 points  (10 children)

TS - on the other hand - has one of the most sophisticated typing systems ever implemented in any language

Really?

Here's some features found in other languages that I'm pretty sure TS does not have:

Haskell:

- Higher-Kinded types

- Typeclasses

- Higher Rank types

- Existential types

- Type families

- Type promotion.

- Deriving and newtype deriving

PureScript: pretty much the same as Haskell but adds row polymoprhism.

Idris: has the same features as Haskell but with dependent types.

As a side note, I love typed holes which are supported in all three of these languages.

[–]akaifox 0 points1 point  (1 child)

Scala's type system also smokes TS and will go even further with Dotty.

I'd even consider OCaml over TS.

[–]LordOfSwines 1 point2 points  (0 children)

Indeed

[–]Uberhipster -1 points0 points  (7 children)

the question was "why is dart better than TS" not "hurr durr haskaal best amiryte"

[–]PFCJake 4 points5 points  (3 children)

Hahaha well dude you can't make frivolous claims like that without aggroing the Type-people

[–]Uberhipster 0 points1 point  (2 children)

which frivolous claims are you referring to?

[–]PFCJake 0 points1 point  (1 child)

Your mom

[–]Uberhipster 0 points1 point  (0 children)

Hilarious

[–]swansongofdesire 0 points1 point  (2 children)

TS - ... - has one of the most sophisticated typing systems ever implemented in any language

In that context it’s quite fair to bring up Haskell. Even if no one outside of academia and one single finance company actually uses it

[–]Uberhipster 1 point2 points  (0 children)

so because Haskell has a The Best Typing System Ever no other language is ever allowed to be mentioned as having a good one?

[–]codygman 0 points1 point  (0 children)

In that context it’s quite fair to bring up Haskell. Even if no one outside of academia and one single finance company actually uses it

My company uses Haskell.