3 ms·
TS does not have a VM. So you’re starting off on the wrong foot. And JS does not have a type system at all. Also, you shouldn’t gatekeep who is/isn’t an engine
by purple-leafy 2y ago
TS does not have a VM. So you’re starting off on the wrong foot. And JS does not have a type system at all.
Also, you shouldn’t gatekeep who is/isn’t an engineer.
- javcasas 2y agoJS has a dynamic type system. You may not like it, that doesn't mean it doesn't have one. Otherwise, no programming language would have a type system except for Idris, for exactly the same reason.
- purple-leafy 2y agoMaybe I’m misunderstanding, could you give me an example? Do you mean the fact that it can imply a variables type from assignment? Edit: I’m plainly wrong, mishmashing words. Yes JavaScript has a dynamic type system
- javcasas 2y agoType systems don't deal with variables. Type systems deal with interactions between values. Maybe those values are inline, maybe they are stored in variables. You don't imply anything from an assignment other than the variable now has or is pointing to the new value. This is the same in every programming language. The only difference is that some programming languages gatekeep what you can assign to a variable based on types.
- wryoak 2y agoI was referring to JS’s VM since TS outputs JS, but I could be misusing the term in that regard too. And I’m not gate keeping who is an engineer, I was ironically rebuking the gatekeeping of the comment to which I’d responded.