8
Mitiko
7y

To all guys who write shitty code:
if (false)

I just found that when compiling for Release mode in Visual Studio the JIT compiler eliminates this:
Dead code elimination - A statement like if (false) { /.../ } gets completely eliminated.
And a lot of other similar stuff

Comments
  • 2
    Owh so we can just write shitth code :D
  • 1
    That should always happen in release mode in every compiler. If it can evaluate the expression in advance there's no reason to fill your cache with useless code.
    Of course in debug mode you need to be able to step through it.
Add Comment