News for hackers. Stuff that matters.
Re:Ask HN: Am I the longest-serving programmer – 57 years an... by tchaffee on Sunday May 31, 2020 @08:10AM (#23369025)
It would work. All those overridden operators are just functions. It wouldn't be as concise or as intuitive though.
Re:Ask HN: Am I the longest-serving programmer – 57 years an... by amelius on Sunday May 31, 2020 @09:46AM (#23369556)
Yes, that was the point ;) Both languages are practically Turing complete so they are equivalent if you're just interested in what you can build with them.
Re:Ask HN: Am I the longest-serving programmer – 57 years an... by tchaffee on Sunday May 31, 2020 @11:05AM (#23370001)
Ah ok, by "numpy wouldn't work in JS" you meant something like it wouldn't be popular or as loved. Makes more sense now.