haxe
haxe copied to clipboard
Skip default type parameters with _
(needed an issue number for tests)
Allow this:
function main() {
var a:A<_,Int>;
$type(a); // A<String,Int>
}
typedef A<K = String, V> = haxe.ds.BalancedTree<K,V>;
Uhm, did we agree to do this? I can't remember...
Well, I did agree with myself there :grin:
iirc you were mostly worried about that syntax being potentially useful for something else, but I don't remember what
Random idea: A<default, Int>.