|
|
|
|
|
by adrusi
3919 days ago
|
|
It's quite bad, and that's been pretty universally agreed upon, but back in the 90s we didn't think it would be too bad. It turns out in javascript it isn't actually that bad because you can write out a short list of very unambiguous rules to completely avoid loose-typing issues. And virtually everyone except people who just picked up the language follow these rules religiously. My impression is that in PHP-land it's very hit-or-miss. Some developers adhere to strict guidelines to avoid these kinds of problems and others don't. Perl programmers generally avoid loose-typing when writing libraries and larger programs, but not while writing scripts for personal use, which I think is a pretty reasonable attitude to have. |
|