News for hackers. Stuff that matters.
Re:Love for TypeScript by k_bx on Saturday July 30, 2016 @04:13AM (#12192122)
> TypeScript 2.0 goes beyond that and begins to push the envelope on what type systems can do

Type systems could do stuff like that many, many years ago. I'm glad that you like these ideas, but let me assure you that TypeScript is far from pushing "what type systems can do".

Re:Love for TypeScript by johnfn on Saturday July 30, 2016 @04:31AM (#12192166)
I realize that I made a factual error in my post and I thank you for pointing that out, but to me your post reads as very condescending, to the point of being rude. It reminds me very clearly why I don't often post comments here.
Re:Love for TypeScript by lomnakkus on Saturday July 30, 2016 @08:19AM (#12192657)
That seems like a really weird thing to read into k_bx's post. I think you might want to try re-calibrating your "is this post meant personally"-meter :).

FWIW, I didn't see any condescension there. I got more of a "Oh, you ain't seen nothin' yet!" vibe from it. Obviously, YMMV.

EDIT: Words

Re:Love for TypeScript by WayneBro on Saturday July 30, 2016 @10:24AM (#12193089)
It sounded a bit condescending to me. Besides that it was an empty comment; a claim with zero citations - not very useful at all.

Anyway, I'm sure that I don't care if an unknown language pioneered something. The language that makes good features popular is the better one.

Re:Love for TypeScript by catnaroek on Saturday July 30, 2016 @10:53AM (#12193188)
> a claim with zero citations - not very useful at all.

Gradual typing isn't exactly a TypeScript invention: Typed Racket is gradually typed, has unions and intersections (which in turn date from further back than TR), refinement types, occurrence types, and even comes with a guarantee that typed code won't violate contracts. If the Racket runtime detects a contract violation, blame will always be assigned to untyped code. TR does more than TS does, and it was designed and implemented earlier.

> It sounded a bit condescending to me.

I didn't read k_bx's comment as belittlement of TypeScript: anything that makes JavaScript better is obviously a good thing! (Since we can't get rid of it.) But, as a matter of fact, TypeScript isn't pushing “what types can do”.

Re:Love for TypeScript by k_bx on Sunday July 31, 2016 @03:44PM (#12198495)
I'm not a native English speaker and didn't try to be rude, I'm sorry if you felt like that. I don't encourage you to post comments here more often though, posting more often doesn't necessary means it's good for you and everyone else.
Re:Love for TypeScript by johnfn on Monday August 01, 2016 @11:59PM (#12207766)
Thanks, I appreciate it.
Re:Love for TypeScript by rimantas on Saturday July 30, 2016 @06:44AM (#12192445)
If you want to find the reason to be upset, you will.
Re:Love for TypeScript by 010a on Saturday July 30, 2016 @11:27AM (#12193347)
And it adds nothing to the conversation, and has spawned an entire subthread of comments like ours which also adds nothing to the conversations. Its exactly the type of comment that should be banned from HN.
Re:Love for TypeScript by shados on Saturday July 30, 2016 @11:09PM (#12195573)
It's not just a factual error, its kind of a sore spot to many people.

TypeScript is a pretty bad type system, but compared to Java and other mainstream ones, it looks like it "pushes the envelop".

Because of this, we're stuck with an half baked, crappy type system designed for mass consumption, and people adopt it with a round of applause.

That's no excuse to me an ass in response to your post...but it's part of why you'll see answers like that.

Re:Love for TypeScript by Dr_tldr on Saturday July 30, 2016 @04:56AM (#12192224)
It's the classic "not invented here" syndrome, but on the level of languages. It's not enough to be able to have strong types in Javascript, they want people to stop writing Javascript, scrap the entire ecosystem, create all new browsers on every platform, and only write in their strongly typed language that's just as flawed as Javascript.
Re:Love for TypeScript by k__ on Saturday July 30, 2016 @07:12AM (#12192505)
He simply wrote that TS isn't on the edge, without getting personal.

I astouned what some people read into a perfectly reasonable critique...

What about PureScript, it's way beyond TypeScript and still compiles and interacts with JavaScript.

Re:Love for TypeScript by catnaroek on Saturday July 30, 2016 @10:21AM (#12193076)
What I find very funny about PureScript is how it has these super-fancy types, designed from the ground up to express things like semigroupoids, lenses and profunctor-based optics... yet it doesn't have a numeric type better than JavaScript's good old floating points.

Just to be clear, this isn't meant as criticism, since I absolutely love how Haskell (and now PureScript too!) exploit algebraic structures to make code more reusable and robust. But the contrast between “can express fancy structures precisely” and “doesn't have precise arithmetic” is very amusing.

Re:Love for TypeScript by WayneBro on Saturday July 30, 2016 @10:19AM (#12193064)
Yeah, but in languages that anybody uses?

That people are actually using TypeScript could be the difference here.

Re:Love for TypeScript by k_bx on Sunday July 31, 2016 @03:49PM (#12198518)
I don't have telepathic abilities to guess what exactly author meant. My goal was to let them know that type systems are much more developed than what TypeScript provides, and to encourage them to go out and learn them, read many great books and discover all the type-system goodness that's lying out there for free.
Re:Love for TypeScript by danappelxx on Saturday July 30, 2016 @11:37AM (#12193402)
Are you assuming typescript is the _only_ good typed language people use?
Re:Love for TypeScript by smt88 on Saturday July 30, 2016 @07:44PM (#12195115)
C# is one of the most popular languages and is one of the inspirations for TypeScript's type system