Introducing ArkTS, Huawei’s Next-Generation Development Language
8 points by janus
8 points by janus
The diagram at the beginning is wrong, no? It implies JavaScript ⊂ TypeScript ⊂ ArkTS, but the article describes how not all TypeScript programs are valid ArkTS programs (e.g. by restricting + to addition, and using something else for string concatenation).
One of TypeScript's selling points was incremental adoption, where you could slowly introduce it into existing codebases and leave other existing code untouched. And this article claims that you could do the same with ArkTS? I'm confused, to me it sounds like that shouldn't be possible. Or is it just that some optimizations won't be possible then?
Yeah, I think it should be reversed. JavaScript is surely the least restrictive, so it should be the biggest set that contains all TypeScript programs etc.
I know some people who were (and still probably are) porting React Native on harmonyOS and boy oh boy, it's a hot mess under the hood and about a year ago there was barely any documentation in english (everything was in chinese, not sure how it looks currently)
Despite its name this doesn't seem to be based on ATS (https://www.cs.bu.edu/~hwxi/atslangweb/)...