4 ms·
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 ex
by shados 8y ago
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.
- BoorishBears 8y agoThat's not what a leaky abstraction is.
- shados 8y agoAn 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.
- BoorishBears 8y agoTs 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)