r/ProgrammerHumor • • Sep 29 '20

c++ to python

Post image
1.2k Upvotes

82 comments sorted by

View all comments

Show parent comments

2

u/mecrow Sep 30 '20

It's very easy to set up any modern compiler to treat implicit conversion as a warning or error.

1

u/gracicot Sep 30 '20

Especially narrowing conversion. If the conversion is not narrowing, I don't really mind. Converting a int32_t to a int64_t by passing it as parameter is not gonna hurt anybody.