2 ms·
A more apt comparison is TypeScript to JavaScript, perhaps. Kotlin and Java interop at the bytecode level, but Golang doesn't have that. Gotlin would have to co
by Arnavion 6y ago
A more apt comparison is TypeScript to JavaScript, perhaps. Kotlin and Java interop at the bytecode level, but Golang doesn't have that. Gotlin would have to compile to Golang with the same shimming hairiness as TS downleveling to JS.
- cies 6y agoWell spotted. Though typescript does not fix some of the biggest horrors of JS. Interop is really good as one would expect.
- mssundaram 6y agoI'd say it depends on how you tune your tsconfig and linting. You can really crank all the knobs avoid nearly all of the JS pitfalls
- cies 6y agoAgreed. But this is not very beginner friendly (sadly JS is more and more the first lang being taught), and is not an example of great design.
- AlphaSite 6y agoConsidering that go is only really used in a statically compiled context, thats not really necessary.