Peter Zeller
Peter Zeller
``` @Test public void genericToIndexBug2() { testAssertOkLines(true, "package test", "native testSuccess()", "class C", " T x", "function stringToIndex(string s) returns int", " return 42", "function stringFromIndex(int i) returns string", "...
It should be possible to - disable checking while typing - disable checking on save - have separate commands to run checks / clear errors and warnings (Suggested by HT)
Like extension functions one could also have extension properties. Extension properties would allow to add new fields to an existing class (but not to other types). Example (inspired by [HotN/wurst/HeroStuff/CaptureAnimation.wurst](https://github.com/Crigges/HotN/blob/7288a57d1f97d0b521c5b90d261281c225d12044/HotN/wurst/HeroStuff/CaptureAnimation.wurst)):...
For example to hook into `SetUnitX` and catch out of bounds errors.
For example, when using old stdlib for EBR.
- Get number of values - Get values as sized Array or List? - Get name of a value as string? - more?
This would be required for the angle tuple. PS: or is it? comparison of angles is kind of strange because it is circular :D
Trying out how rewrite of StdLib with new generics and type classes would look like (see https://github.com/wurstscript/WurstScript/pull/931). Feedback and tests with users of the library are very welcome.
``` // consider this function: function add(x = 0, y = 0, z = 0) return x + y + z // can be called like this: add(1, 2, 3)...