Hacker News new | past | comments | ask | show | jobs | submit login

Agreed. My suggestion is for Bun to do that since they are already transforming typescript to JS.

But you can do it β€”- there a babel plugin in the TC39 proposal:

https://github.com/tc39/proposal-operator-overloading




I'm glad that proposal was withdrawn; it would've been by far, in my opinion, the worst implementation of operator overloading, in any (mainstream) language


I had glanced through it a long time ago. Maybe it’s time for someone to create a new (and better!) proposal.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: