4 ms·
What does this have to do with faults of the language? I can think of a lot of stupid things to do in any language; it doesn't mean the language is the problem.
by wizzard 15y ago
What does this have to do with faults of the language? I can think of a lot of stupid things to do in any language; it doesn't mean the language is the problem.
- rane 15y agoIt does if the language itself makes it easier for you to make those kind of mistakes.
- jonursenbach 15y agoIt's easy to make any kind of mistake in any language. Singling PHP out for it because some people are shitty programmers is BS, IMHO. Not all of us are asshats who have no idea what we're doing.
- scott_w 15y agoThe weak typing of PHP doesn't make life easier for the programmer in this instance. For example, this specific problem is harder to create in stronger-typed languages, since you would need to explicitly cast from an integer to a string.