Comments (5)
[comment from [email protected], published at 03/01/2010, 15:52:41]
from haxe.
[comment from [email protected], published at 03/01/2010, 15:53:47]
from haxe.
[comment from [email protected], published at 03/01/2010, 22:50:51]
Also the type of a must be Null because a = 1 gives a "Int can't be null error".
from haxe.
[comment from [email protected], published at 12/06/2010, 06:03:12]
I am having what i think might be a similar issue. I have a function
public function api(path : String, method = "GET", ?params : Hash, ?onResult : Dynamic->Void, ?onError : MyException->Void) : Void
if i call
o.api("path", function (result) { /* stuff */ });
then "method" is null. however if i call it with no other default params
o.api("path");
then "method" is "GET"
so perhaps there is some issue when any optional paramter with a default is followed by another optional that is specified in the call?
from haxe.
[comment from [email protected], published at 05/12/2010, 11:52:29]
Yes, both are similar, in the sense that when you skip some optional arguments, null will be passed. This would require passing the default value instead but the default value is not part of the function type so this is not possible to fix or even give a proper error message.
from haxe.
Related Issues (20)
- [optimisation] For loop is not removed if variable is used
- Eval compiler exception when building hxb HOT 2
- Map with abstract key complains about mismatched types HOT 1
- Diagnostics prevents macros from being updated
- Null-coalescing operator cast before test against null issue HOT 2
- [diagnostics] No diagnostics returns empty string instead of json rpc response HOT 1
- Compilation server gives different result on 1st/2nd compilation HOT 1
- Diagnostic cause compiler failure Unbound variable src/filters/renameVars.ml
- haxe.PosInfos and macro HOT 2
- Compiler can't write to long paths on Windows, even with long paths enabled HOT 1
- Switch Abstract<Null<Int>> generation differ from Null<Int> HOT 6
- [hlc] Using unsigned shift right operator on Int64 results in code that does not compile on MSVC without manually including a particular header.
- local static in inlined function gets optimized away with analyzer HOT 5
- lix upgraded to 4.3.5 and haxelib throws an error HOT 4
- Abstract generate @:impliciteCast instead of cast in some situation, cause different behavior on HL
- AttributeError: 'os.stat_result' object has no attribute 'st_birthtime' on linux HOT 1
- Call stack missing type names on JS in Chrome HOT 1
- Invalid String Exception when inputting non-english text in interp mode (Sys.stdin().readLine)
- Confusing deprecation warning when using `--jvm out.jar` HOT 2
- Regression: extractor fails in non-exhaustive switch
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 haxe.