5 ms·
uhm java has method overloading..
by hawk_ 6y ago
uhm java has method overloading..
- vorticalbox 6y agoSo does javascript.
- Toutouxc 6y agoI believe that JS doesn't have function overloading. Function overloading, the way I understand it, is the ability to declare multiple functions with the same name but a different signature (different tuple of arguments) and let the runtime/compiler decide upon the implementation used.
- vorticalbox 6y agoJavaScript supports this here is a snippet from out sdk https://pastebin.com/xCnY8ZzV https://pastebin.com/xCnY8ZzV
- emteycz 6y agoThat's TypeScript and it works only with type signatures, you still have only one actual implementation.