3 ms·
Haxe has a similar (but not quite identical) bag of tricks which act as a "gradient" of stronger/weaker couplings. You have to specify that an implementation c
by chipsy 14y ago
Haxe has a similar (but not quite identical) bag of tricks which act as a "gradient" of stronger/weaker couplings.
You have to specify that an implementation can use a specific interface, but you may overload an implementation with multiple interfaces. http://haxe.org/manual/2_types#interfaces http://haxe.org/manual/2_types#interfaces
You can use structure types instead of classes and rely on structural subtyping to match them.
http://haxe.org/manual/2_types#structural-subtyping http://haxe.org/manual/2_types#structural-subtyping
And you can ask for dynamic type behavior wherever the code needs it.
http://haxe.org/ref/dynamic http://haxe.org/ref/dynamic