Re:Where do argc and argv come from?
by loopz on Monday August 10, 2020 @02:30PM
(#24112438)
For compiled languages, it's neat to get compiler error instead of a nasty bug.
[ Parent
| on HN ]
Re:Where do argc and argv come from?
by quietbritishjim on Monday August 10, 2020 @03:33PM
(#24113123)
A bug is a problem that affects your users. If you're a library author then your users are developers of applications (and higher-level libraries), so an unintentional breaking change to your API is definitely a bug.
In python without explicit analysis using something like pylint you won’t find out until function call time.
No compiler in Python. In combination with features like varargs, kwargs, unpacking dictionary into args, argument forwarding Python allows you to turn this into bugs.