Yeah, I’ve seen a lot of those videos where they do things like {} + [], but why would anyone care what JS does in that case? Unless you’re a shit-ass programmer, you’re never going to be running code like that.
By this same logic, memory safety issues in C/C++ aren’t a problem either, right? Just don’t corrupt memory or dereference null pointers. Only “a shit-ass programmer” would write code that does something like that.
Real code has complexity. Variables are written to and read from all sorts of places and if you have to audit several functions deep to make sure that every variable won’t be set to some special value like that, then that’s a liability of the language that you will always have to work around carefully.
























On the contrary, they designed the constitution with exactly the kind of person like Trump in mind. They just finished fighting a revolution against a king from across the ocean and wanted be as sure as they could that their government did not function the same way. The reason they failed is because they thought Americans would be much more civically engaged than they actually are. And also because the legislative branch is terribly designed.
And don’t forget that the world of the 1700s was a much darker place than it is today. There were monarchies and brutal regimes all over the place and in very recent memory from earlier centuries as well which probably gave them all kinds of inspiration of what they wanted to prevent.