Is there a difference between casting and converting types in imperative programming languages?
https://softwareengineering.stackexchange.com/questions/133073
-
04-11-2019 - |
题
The question came up in a discussion at StackOverflow.
Is there a clean distinction between the two concepts cast and convert (concerning the type of an object), or are these two words describing exactly the same? How about languages other than C++, Python and Java? EDIT: What if the types in question are primitive types, like int
to float
?
没有正确的解决方案