Hacker News new | ask | show | jobs
by thih9 1197 days ago
I’m unfamiliar with TS. Could someone explain this part?

> Invoke the compiler

    $ tsc *.ts --lib esnext --outFile /dev/stdout 
    var ᚾ = Symbol();
    var ᛊ = Symbol();
    var ᛚ = Symbol();
    var ᛞ = Symbol();
Why is there so little output? Is that because the compiler removed the unneeded types? And the author is implying that the task was boilerplate and pointless?
1 comments

Everything is only in type system providing developer type-hints. When compiled, it all boiled down to plain js.