News for hackers. Stuff that matters.
Re:The unknown features of Python's `operator` module by ledauphin on Sunday August 08, 2021 @04:12PM (#28109703)
I'm not sure I've observed a lot of folks in the JavaScript world using Map. I agree there are occasions when it's very useful, but for my money those have more to do with cases where you need non-string keys. For everything else, as far as I can tell, Objects remain entirely idiomatic despite their idiosyncrasies.
Re:The unknown features of Python's `operator` module by ris on Sunday August 08, 2021 @04:53PM (#28110000)
That's interesting - I must have just been lucky in what I've encountered ES-wise as of late. It relieved me greatly to no longer have the horror of mixing user data and method/"special" names.
Re:The unknown features of Python's `operator` module by zodiakzz on Tuesday August 10, 2021 @01:37AM (#28125458)
I love

  { __proto__: null, foo: 'bar' }
That creates a clean prototype-less map/record object. I always wish they would add special literals to create such objects.
Re:The unknown features of Python's `operator` module by ledauphin on Friday August 13, 2021 @01:55PM (#28172157)
oh, this is fascinating. I might have to add this to my bag of tricks.