I don't know this Zed guy, but... the only thing I agree with him about is that it would really be nice if Python showed the variable names it could not concatenate in error messages instead of just their type.
Yup. And then you have some expression that involves 4 strings and you get the error message "string cannot be blah", but you have no idea which string it is. I think there has to be some way of letting the user know which operation went wrong and not only which line it was.
how should the python interpreter underline your code? i dont get what you want.
i am sure it would be possible to write some sort of vim extension that does the same thing, but how is this supposed to work as a language feature?
edit: i think now i get it. python should check the whole codebase on startup for type issues?
guido commented on that when adding type annotations. he mentioned that type checks should remain in external tooling. maybe there is some overlap here.
11
u/unruly_mattress Nov 24 '16
I don't know this Zed guy, but... the only thing I agree with him about is that it would really be nice if Python showed the variable names it could not concatenate in error messages instead of just their type.