Guide104.7K views2,200 votes0 replies3,172 following
Haxe Structural Typing for Anonymous Objects: Shape Matching at Compile Time
Haxe accepts any object that matches a function’s required field shape at compile time, ignoring extra properties and rejecting missing required fields. Here’s how the matching works and what to watch out for.