On Mon, 19 Feb 2018 20:14:32 +1100, Chris Angelico wrote:
> As an integer, 3.141590 is 1078530000 $
> Looks to me like C is perfectly happy to interpret a float as an int.
Yes, but that's not an *automatic* coercion. To count as weakly typed,
the compiler has to do it automatically, without an explicit cast or
I understand well that many people criticise C for making it too easy for
the programmer to violate type-safety (or even for allowing it *at all*),
but that's an orthogonal issue -- and probably essential for a systems
language. D, Rust and other new-generation systems languages which have
much stronger type systems than C nevertheless also allow programmers to
escape from the type system when necessary.