--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
The macro does the same thing, except all at compile time. So you get type safety - the compiler won't let you call the function with parameters for which there isn't an implementation.
Good question. If you wrote a normal function to do the routing, it would take dynamic arguments, determine their type, and call the right function. It'd work. All at runtime.
The macro does the same thing, except all at compile time. So you get type safety - the compiler won't let you call the function with parameters for which there isn't an implementation.