5 ms·
> You'd need something that actually understands the language. What is a lifetime, what is scope, what are types, functions, variables, etc. Why is that more i
by eru 3y ago
> You'd need something that actually understands the language. What is a lifetime, what is scope, what are types, functions, variables, etc.
Why is that more important for programming languages than for human natural languages?
- Night_Thastus 3y agoBecause if you use a somewhat odd phrasing, uncommon terms, weird sentence structure, etc - human beings are very good at figuring out what is meant. We can interpolate, we can extrapolate, we can estimate and understand context. Very incomplete language can still be understood with the right context. A compiler cannot do these things. The code must follow the rules of the language perfectly, or the code won't compile. And further, it doesn't understand intention like a human can. It doesn't know that you intended to loop over all items in a collection - if you have an off-by-one error it'll happily compile that regardless.