4 ms·
Nitpick: C is weakly typed, Ruby is strong. C is statically typed, Ruby is dynamic. Strong typing is about objects having a definite type. In Ruby, you cannot
by mdpye 8y ago
Nitpick: C is weakly typed, Ruby is strong.
C is statically typed, Ruby is dynamic.
Strong typing is about objects having a definite type. In Ruby, you cannot cast a String to a Fixnum, an exception will be raised. But in C you may cast anything to anything really, and your program will believe you, whether it could possibly make sense or not...
- oelmekki 8y agoI thought "strong typing" and "static typing" were interchangeable. I stand corrected, thanks.