Re:It is ridiculously easy to refactor Go
by chipsy on Sunday January 27, 2013 @04:59PM
(#5125836)
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
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
You can use structure types instead of classes and rely on structural subtyping to match them. 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