2 ms·
Because the parent compared Python's behavior to that of C. The difference of course is that adding strings doesn't make sense in C, so there's no danger of mis
by tgv 5y ago
Because the parent compared Python's behavior to that of C. The difference of course is that adding strings doesn't make sense in C, so there's no danger of misinterpreting "abc" "def" in C, as there is in Python.
- kazinator 5y agoThe same comma typo bug could happen in C. execl("/bin/sh", "/bin/sh", "-c" "echo foo", (char *) NULL); Here we get one "-cecho foo" argument passed to the shell instead of two, so it can't work. Initializers are another example: char *strArray[] = { "how", "now" "brown", "cow" }; In non-variadic function and macro calls, you will most likely get an insufficient arguments error, unless another mistake compensates for that.