Ask HN: Why do AI code editors suck at closing tags?

9 points by cryptography ↗ HN

4 comments

[ 4.3 ms ] story [ 13.7 ms ] thread
They don't. Use better tools
Never encountered this issue until I tested GLM and Kimi K2 models. Opus and Sonnet seems to be good at handling this, even when giving them a code with open tags, they'll know where to put the closing tag quickly.
Same reason they can't count the 'r's in "strawberry", these models don't actually understand structure, they just autocomplete really convincingly.