Not coalescing around None-aware
Not coalescing around None-aware
Posted Dec 24, 2022 19:51 UTC (Sat) by NYKevin (subscriber, #129325)In reply to: Not coalescing around None-aware by Wol
Parent article: Not coalescing around None-aware
> What are you going to do about languages where "==" means something other than equality? (just because I can't think of any doesn't mean there aren't any!)
Javascript uses == to mean "loose" equality, which tries to coerce the types of the LHS and the RHS to match before comparing them. Consequently, it is intransitive and can be very unpredictable in certain contexts. They spell true or "strict" equality as ===. The == operator is not (typically) used in modern Javascript, so this is mostly just a quirk of spelling.
= is still assignment, however.