10 ms·
While I agree it's often advantageous to set a local variable instead of just immediately returning an expression for breakpoint reasons, there's really no reas
by cableshaft 10y ago
While I agree it's often advantageous to set a local variable instead of just immediately returning an expression for breakpoint reasons, there's really no reason to have that if statement in there instead of just returning the local variable, and I think it reads poorly.
It's trivial to add the if statement if it's truly necessary in the future (like if you need to evaluate the variable beyond simply whether to return true or false).