6 ms·
It does, but in dynamically typed languages it's obviously less capable. To deal with this one could of course have a static type system instead, but that nece
by Tade0 6y ago
It does, but in dynamically typed languages it's obviously less capable.
To deal with this one could of course have a static type system instead, but that necessitates learning the DSL behind it and its idioms - the lack of which is the main appeal of dynamic typing to begin with.
- virgilp 6y agoI actually did code hinting for PHP in a fairly popular commercial product, more than 10 years ago - and I disagree with you that it has to be less capable. You can use heuristics - people are forgiving because they understand you can't get everything right. You can use configuration files & user hints to help the semantic analysis. You can absolutely get the hints mostly right - and it's automatic, so probably closer to being correct than anything that'd have to be maintained by hand.