Re:Rust for C++ programmers – part 3: primitive types and op...
by saurik on Wednesday April 23, 2014 @03:46AM
(#7632681)
It isn't as much about the coercion as the consistency: the division case returning a float when given integers is fine if the division operator always does that. Some languages (VB being an example; I wish more were) have a "string concatenation" operator that is separate from numeric addition; 1 & 2 is always going to be "12".
[ Parent
| on HN ]
There are no comments on this comment yet.