3 ms·
AFAIK, the only difference between TS and JS is types. TS doesn't give you anything that's functionally different than JS -- only types that are stripped during
by goodoldneon 5y ago
AFAIK, the only difference between TS and JS is types. TS doesn't give you anything that's functionally different than JS -- only types that are stripped during compilation. You can't perform any logic on types at all (e.g. you can't have conditional logic based on interfaces).
Comparing assembly/C to JS/TS doesn't make sense.
- CRConrad 5y agoYeah, and the only difference between C and machine code is that C hasn't been compiled yet. The comparison makes perfect sense.
- goodoldneon 5y agoWriting TypeScript is like writing JavaScript but with type annotations. Writing C is not like writing assembly with type annotations.
- CRConrad 5y ago> Writing TypeScript is like writing JavaScript but... ...but different. > Writing C is not like writing assembly... ...it's different.