4 ms·
It is true of other dynamic languages and there isn't any way to fix that.
by DanWaterworth 13y ago
It is true of other dynamic languages and there isn't any way to fix that.
- Ovid 13y agoSorry, many dynamic languages prevent against this. For example: $ perl -Mstrict -E 'say $foo' Global symbol "$foo" requires explicit package name at -e line 1. Also, his comment about properties on objects is very debatable, too. Ignoring that the term "property" is overloaded and not defined, since I use roles (see: http://www.slideshare.net/Ovid/inheritance-versus-roles-1799996 http://www.slideshare.net/Ovid/inheritance-versus-roles-1799...), I find out at compile time if my classes are missing an attribute or method (actually it's composition time, but that's splitting a hair that most will never notice). In short, I don't get frantic 2AM phone calls about a batch process trying to call a non-existent method.
- icebraining 13y ago$ cat err.py def a(): print b $ pylint -E err.py ************* Module err E: 2,8:a: Undefined variable 'b'