advanced (lemmy.world)
submitted 3 months ago by hairinmybellybutt to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 1 points 3 months ago

The assignment syntax is too close to comparison, which is what is more typical in that position. I would recommend

const bool _isFeatureEnabled = false;
if (_isFeatureEnabled && ...)

if not a proper feature flag (or just remove the code).

this post was submitted on 21 Nov 2023
423 points (97.1% liked)

Programmer Humor

9822 readers
35 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)


founded 4 years ago