185 reputation
bio website curiouslynerdy.com
location United States
age 37
visits member for 3 years, 10 months
seen Jan 9 at 17:36

comment One-line functions that are called only once
@Wolf Hey man, yeah. I wrote this quite a while ago :) I definitely do things quite differently now days. In fact, looking at the label content to see if there was an error makes me cringe... Why didn't I just return a bool from CheckInputs()???
comment Why there are no compound assignment operators for logical operators (such as ||, && etc)?
I think you misunderstand the meaning of "mathematical", perhaps you have heard of boolean algebra. I agree the coercing a non-boolean in order to use ||= as a null coalescing operator is not intuitive and in fact looks obtuse in code-form. Where it does become useful is when you are attempting to do boolean math. function fulfill(inValue) { if(resolved || rejected) return false; /* Do stuff here */ return true; } resolved ||= fulfill(value)