3 ms·
This is what I'm saying though. Typescript is just a hack on top of Javascript. The same engine is going to run your code in the browser. For the record, I thi
by vlunkr 3y ago
This is what I'm saying though. Typescript is just a hack on top of Javascript. The same engine is going to run your code in the browser.
For the record, I think Javascript is fine (with some nasty warts), and Typescript is a great addition. The idea that TS is great but JS sucks is silly.
- anyfoo 3y ago> Typescript is just a hack on top of Javascript. Exactly, it makes it "more palpable". > The idea that TS is great but JS sucks is silly. Just to be clear, I absolutely did not say that. Instead, I'd rather agree with your statement that TS only makes things better. But there is only so much it can do in that ecosystem, even if a good type system does notably improve things. Everything that's below that is still what it was.
- anyfoo 3y ago> Exactly, it makes it "more palpable". Typo: Palatable, obviously, not palpable. Too late to edit.
- robertakarobin 3y ago> The idea that TS is great but JS sucks is silly. Isn't all programming just layers of abstraction that make the layers underneath it more usable? If you view Typescript as a standalone language that is another abstraction -- just like every other programming language -- that may make it more palatable. Yes, it's technically a superset of JavaScript, but I don't think anyone uses it that way. It would defeat the purpose, like buying a car and then tearing out the seats, air conditioner, and sound system.
- baq 3y ago> The idea that TS is great but JS sucks is silly. Actually... typescript's type system could work quite well in other languages and is in fact in some fashion being ported over to multiple, Python's great turnaround on type hints a few years ago was obviously inspired by it. So, I disagree. The type system makes a wart of a language into something passable, which is a great achievement.