3 ms·
This is strictly false though. IDE integration can give insight into metaprogramming in many languages.
by KirinDave 9y ago
This is strictly false though. IDE integration can give insight into metaprogramming in many languages.
- falcolas 9y agoPython, the language in question, does not easily offer this support, since all of the metaprogramming occurs at runtime. You have to run a debugger while creating the object to see what is actually happening. Lisps, C Preprocessor (within certain limits), and so forth are a bit different, since you can expand the macros without having to run the code itself. Does that indicate a strength of Python or a weakness? A complete value judgement there. In either case, metaprogramming in Python (and many other languages, even those with support for metaprogramming resolution in their IDEs) is still simply harder to understand and debug.
- KirinDave 9y agoI feel no real problem shaming the entire design of Python as a long bet on failed premises. But other languages with similar properties can and do report their metaprogramming results to language servers.
- throwaway91111 9y agoAgreed completely—this is the difference between metaprogramming and "black magic", which is familiar to any ruby programmer.
- aoeusnth1 9y agoYes, that explains why the language is failing.