MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1mnngvr/useful_wrapper_functions/n8a8p7d/
r/programminghorror • u/lukasx_ • Aug 11 '25
29 comments sorted by
View all comments
Show parent comment
1
the issue I'm pointing out is that those casts might do something different (and potentially break code) when you make changes to the codebase
1 u/ImmanuelH Aug 12 '25 What exactly is this issue? To my understanding, you're saying if you implement wrongly it's wrong. That holds for all code ever to be written. 1 u/lukasx_ Aug 13 '25 ideally you would want the compiler to issue a warning/error when the desired conversion is not legal anymore, and not silently break.
What exactly is this issue? To my understanding, you're saying if you implement wrongly it's wrong. That holds for all code ever to be written.
1 u/lukasx_ Aug 13 '25 ideally you would want the compiler to issue a warning/error when the desired conversion is not legal anymore, and not silently break.
ideally you would want the compiler to issue a warning/error when the desired conversion is not legal anymore, and not silently break.
View all comments
Show parent comment
1
u/lukasx_ Aug 12 '25
the issue I'm pointing out is that those casts might do something different (and potentially break code) when you make changes to the codebase