3 ms·
> When your code base grows you will end with dozens of places to change your code, all of them error prone. Well, it's really only error prone if your editor
by __david__ 14y ago
> When your code base grows you will end with dozens of places to change your code, all of them error prone.
Well, it's really only error prone if your editor doesn't have syntax highlighting. Seeing a whole swatch of code turn into the comment color pretty much tells you what's going on.
Still, I think personally I'd rather do an "#if 0". It's still only 1 character to toggle the code on or off...
- sherril8 14y agoI think the concern was more that the functions you are toggling will likely interact with other functions you are toggling. So if you toggle one on but forget to toggle the other, then you could end up with undesirable results.