News for hackers. Stuff that matters.
Re:The rise of never-ending job interviews by megous on Monday August 02, 2021 @10:21AM (#28036873)
C++ does not have boolean assignment operator in a sense the ||= syntax works in ES.

https://www.w3schools.com/cpp/trycpp.asp?filename=demo_oper_...

||= will not assign anything unless the LHS variable is falsy. It will not even evaluate the right side unless LHS is falsy.

|= will work the same in C++ and ES mostly (depending on types)

Re:The rise of never-ending job interviews by HWR_14 on Monday August 02, 2021 @09:41PM (#28044844)
I'm just thrown for a loop. Why is the default to assume I'm familiar with the ||= operator in ES?

The fact that the ||= operator short circuits makes sense from an optimization point of view. I will maintain that there is no good use for the correctness (as opposed to optimization) of the code to depend on that feature.