News for hackers. Stuff that matters.
Re:The Svelte Compiler Handbook by madeofpalk on Sunday April 05, 2020 @05:45PM (#22789007)
As a “life long” web/JavaScript developer, ESLint is nowhere near comparable to Typescript. One is a language, and the other is an (overused and over configured) linter. They’re two different things.

I’m no C# developer, but the only way it is familiar to Typescript in the sense that it is a typed language.

Typescript is a superset of JavaScript, and is remarkably close. If you know JavaScript, typescript will be exceptionally similar because it’s literally the same, just with types added on top.

Re:The Svelte Compiler Handbook by orange8 on Sunday April 05, 2020 @06:04PM (#22789121)
I have worked with two compile to JS languages, CoffeeScript and TypeScript.

> One is a language, and the other is an (overused and over configured) linter.

You could also say that one is an extremely opinionated linter and the other is just a linter.

Re:The Svelte Compiler Handbook by madeofpalk on Monday April 06, 2020 @08:49AM (#22793226)
No, I would not say that a type system is an "extremely opinionated" linter because TypeScript is about proving correctness and safety, not enforcing style guidelines.

A linter and a type system are two extremely different things. The only thing they have in common is that they statically analyse code.