Comments (6)
This would break the current resolution rules for function references as in "TimerStart(..., function print)". Please also add suggestions on how to change this with respect to overloading.
from wurstscript.
"You can't use overloaded functions in callbacks" :D
from wurstscript.
What should the exact rules for overloading be?
Maybe you can take http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.12.2 as an inspiration for the specification. Or you see that overloading can add quite some complexity to the language. Of course it will be simpler for Wurst as we have no backwards compatibility issues and no boxing and no type coercions but still we have to think about how overloading works with overriding, subtyping, packages, type inference, generics, etc.
You might also want to read http://www.roseindia.net/javatutorials/overloading_considered_harmful.shtml
So currently I am against adding overloading.
from wurstscript.
meh, I (ofc) didn't think about the full scale consequences, it would just be a cool enhancement to have.
from wurstscript.
The point is: I am not sure if it is an enhancement and it surely will complicate the compiler :D
from wurstscript.
Done, but still needs some testing and documentation.
from wurstscript.
Related Issues (20)
- [Lua] Modules are not initialized in derived classes when the module is used in the base class HOT 1
- [Lua] The reserved functions "objectToIndex" and "objectFromIndex" collide with user functions
- how to really create a string autohash?? HOT 7
- how to run debug mode, save some codes HOT 1
- wurst cannot good at low version war3. (about array limit)
- low version cj cannot change the limit size of the class HOT 2
- Why are there so many lines of code after compilation HOT 1
- Use w3x2lni to speed up compilation HOT 1
- support utf8 Character to Name the compile time variable
- how to use ExecuteFunc in wurst HOT 1
- [Lua] Parser Local Limit HOT 1
- why *.wurst filename must as same as package name?? HOT 1
- Connection to server got closed. Server will not be restarted. HOT 1
- Sometimes wurst built an unrunnable map. HOT 6
- Map crashes due to generated jass function with too many arguments HOT 7
- Internal error. HOT 1
- VersionExtractionException: Failed to extract executable version data HOT 2
- Can Wurst be upgraded to jdk17? HOT 3
- Option to disable game path configuration HOT 4
- [Lua]: Compiling map and not using "-opt" creates wrong "config" function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wurstscript.