I’m in this no-experience-to-apprenticeship program and everyone in my class thinks type coercion is the greatest thing ever.
Use TypeScript, and nonsensical things like adding arrays to objects will be compile-time errors.
By that logic what we really need is a modernization of Ada, where there are no compiler warnings and anything that would generate one in another language is instead a compiler error, everything is strongly typed, etc, etc.
If you aren’t familiar with Ada, just imagine Pascal went to military school.
Who would use that kind of type coercion? Who? I want to see his face.
On the other hand, I don’t think you should add those ever
Sure. But in a sane language doing something totally nonsensical like that is an error, and in a statically typed language it’s a compiler error. It doesn’t just silently do weird shit.
What’s a sane, dynamically typed language?