Does Typescript have Operator Overloading?

做~自己de王妃 提交于 2019-12-22 02:00:52

问题


My question is if there is operator overloading in typescript, if it exists I could give an example or a link where you can read about it.


回答1:


No it does not exist. It is very unlikely that it will exist unless there is a clear Spec on how it might be implemented in Pure JavaScript.



来源:https://stackoverflow.com/questions/36110070/does-typescript-have-operator-overloading

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!