3 ms·
ruby is strongly typed, in that it doesn't allow you to implicitly coerce between types*: 1 + "1" will raise an error. (As opposed to weak typing in C or JS)
by sinkwool 3y ago
ruby is strongly typed, in that it doesn't allow you to implicitly coerce between types*: 1 + "1" will raise an error. (As opposed to weak typing in C or JS)
ruby however is not statically typed.
*(there are actually ways to implement certain types of coercions by defining to_ary, to_str, to_int)