26 Is TS More AI-Friendly Than JS?
I've always had a question mark on this question, currently no conclusion either, let me summarize the two camps' viewpoints
TS camp, main argument is formal verification: JS language itself has no static types, too flexible, not conducive to AI reasoning
TS adds types to JS, AI generating TS is equivalent to going through a round of weak formal verification first, get types right first, if types are right code has higher possibility of being correct
Sounds somewhat reasonable, but not absolute, the loophole is reasoning is only one aspect
Back to AIGC itself, AI base models rely on massive data pre-training
AI can be understood as compressing world knowledge, the higher the proportion of code in corpus, the higher the code quality, theoretically generated code will be better
No comments yet. Be the first to share your thoughts.