News for hackers. Stuff that matters.
Re:If It Ain't TypeScript It Ain't Sexy by shados on Monday February 11, 2019 @03:18PM (#19137877)
It's leaky in the sense that you can bypass it. If I flag something as private in TS, there's nothing stopping a "any" somewhere from making it writable, for example.
Re:If It Ain't TypeScript It Ain't Sexy by BoorishBears on Monday February 11, 2019 @03:49PM (#19138169)
That's not what a leaky abstraction is.
Re:If It Ain't TypeScript It Ain't Sexy by shados on Tuesday February 12, 2019 @10:19AM (#19144119)
An abstraction that doesn't properly hide what's under the hood and requires people to still be aware of it. That's exactly what TS is.
Re:If It Ain't TypeScript It Ain't Sexy by BoorishBears on Sunday February 17, 2019 @01:56AM (#19183063)
Ts doesn’t abstract away Js.

It’s a superset of Js, almost the “opposite” of an abstraction (at least in the common intent of an abstraction)