logoalt Hacker News

xemdetiatoday at 2:28 PM2 repliesview on HN

I thought JavaScript language equality quirks was seen as problematic not a missing feature in Python.


Replies

voidUpdatetoday at 2:32 PM

At least in javascript, it tells you if things are equal or not. In python, apparently you could answer if A is equal to B with "beans" or 17 or ['a']

show 1 reply
throwaway894345today at 2:51 PM

Python never met a footgun it didn’t need to adopt. In this case, however, it’s not equality checks, but operator overloading. I was a Python developer for a decade before switching to Go and life on this side is so much better.

show 1 reply