3 ms·
I was able to find it instantly, but that's because I always use curly braces for my if/while/for loops.
by HeliumHydride 2y ago
I was able to find it instantly, but that's because I always use curly braces for my if/while/for loops.
- WalterBright 2y agoI added a warning for it in my C compiler back in the mid 1980s. Fun story. A friend of mine (Eric Engstrom!) bought himself a backhoe. I'd never driven one before and he offered to let me drive it. Sure! The clutch pedal works backwards from that in a car. Press on the clutch to engage it, release the pedal to disengage it. After some struggling with my reflexes being all wrong, I came within a couple feet of taking out the side of his barn - by switching off the key. There was nothing wrong with that user interface, other than being insane.
- binaryturtle 2y agoIndeed, enforcing brackets here would be the proper fix, IMHO. :) I always use brackets too. That's simply a less error-prone style.