Should I cast variables that use a typdef'd type?
- by mesorismo
If I have something like:
typedef int MyType;
is it good practice to cast the operands of an operation if I do something like this:
int x = 5;
int y = 6;
MyType a = (MyType)(x + y);
I know that I don't need to do that but wondering if it's better for intent/documentation/readability concerns.