News for hackers. Stuff that matters.
Re:JavaScript Temporal Is Coming by brundolf on Thursday January 30, 2025 @07:58PM (#42883784)
Is there any non-primitive JS type that has non-referential equality for ==?
Re:JavaScript Temporal Is Coming by tubthumper8 on Thursday January 30, 2025 @09:16PM (#42884162)
Yeah, that's one of the core problems, there's no overloading of equals in JS and no other cases of objects using non-reference equality. Adding that in itself would be a big deal (ex. see the Records and Tuples proposal which has been going on for years and may never complete)
Re:JavaScript Temporal Is Coming by 8n4vidtmkvmk on Thursday January 30, 2025 @10:42PM (#42884521)
There's exactly one IIRC. document.all