typedef NodeListener = Dynamic; ??

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

typedef NodeListener = Dynamic; ??

sledorze
To provide better typesafety of haxe generated programs, I propose to make it stick to this:

typedef NodeListener = Dynamic -> Void;

the only reason I could think of it is still a Dynamic is that some javascript API use the fact to provide parameter less function when a parametrized function is expected.. thus some javasriptwise valid programs may not compile..

How could (should?) we handle that?

typedef NodeListener = ?Dynamic -> Void;

St├ęphane..