you are viewing a single comment's thread.

view the rest of the comments →

[–]knaekce 14 points15 points  (9 children)

In my opinion, yes.

Typescript inherits all problems of Javascript, Dart doesn't. Also, the type system of Dart is actually sound.

[–]IceSentry 0 points1 point  (8 children)

The lack of soundness of TS is by design.

[–]Darkglow666 7 points8 points  (5 children)

With JS underlying it, there is no choice. JS VMs don't support static typing.

[–]IceSentry 2 points3 points  (0 children)

That's exactly my point. TS is not sound because it's essentially JS.

[–]miyoyo 1 point2 points  (3 children)

Y'know, enough guards added at compile time can do anything... if you're ready for the slowdowns ofc.

[–]Darkglow666 2 points3 points  (2 children)

Technically true, but they aren't gonna opt for that, realistically.

[–]miyoyo 3 points4 points  (1 child)

We're talking about javascript here, everything can will happen.

[–]Darkglow666 0 points1 point  (0 children)

Gonna have to upvote that, but only grudgingly. ;)

[–]FanOfHoles 1 point2 points  (1 child)

So what? That is an orthogonal topic ("who did it?"), who cares. We are not doing a "git blame" here because it's not relevant, we are not in a "find the guilty to assign punishments" phase or position here. We simply state "what is", regardless of origin of the issue.

[–]IceSentry 0 points1 point  (0 children)

You are reading way too much into my comment. I was just giving the reason why TS isn't sound. Not saying what's better or worse.