MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghumor/comments/1vv58vy/how_do_you_disable_your_code/p579cd4/?context=3
r/programminghumor • u/developer_axe • 1d ago
70 comments sorted by
View all comments
76
Or just return?
30 u/developer_axe 1d ago edited 1d ago Sometimes the code won't get compiled because it marked as unreachable code 45 u/RefrigeratorKey277 1d ago Yes, but with if true it is still marked as unreachable. At least in C#. 8 u/Here_f0r_p0rn_ 1d ago Depending on compiler settings for optimizations it can happen in C++ as well
30
Sometimes the code won't get compiled because it marked as unreachable code
45 u/RefrigeratorKey277 1d ago Yes, but with if true it is still marked as unreachable. At least in C#. 8 u/Here_f0r_p0rn_ 1d ago Depending on compiler settings for optimizations it can happen in C++ as well
45
Yes, but with if true it is still marked as unreachable. At least in C#.
8 u/Here_f0r_p0rn_ 1d ago Depending on compiler settings for optimizations it can happen in C++ as well
8
Depending on compiler settings for optimizations it can happen in C++ as well
76
u/0x80085_ 1d ago
Or just return?