Message from JavaScript discussions

September 2018

— Example of it in my real code

— 

// Return the yielded state of the Program
if (!isIterator(state)) state = this.returnValue(state);
else if (!isKernelized(state.value)) state = this.returnValue(state.value);

— 

if (quantum === null) quantum = this.quantum;

— Or q === null && q = this.quantum

— I dislike short circuiting

— If i replace && with and will it be better?

— In livescript it could be
q = quantum if q == null

— Reversed

— Whyyyy

— Imo it is abuse of a logical operator

— I don't think so

— If I don't use the result of the expression, it shouldn't exist in my code