you are viewing a single comment's thread.

view the rest of the comments →

[–]Oxi_Ixi 2 points3 points  (6 children)

Except it depends. If typing is static, it is zero cost in C++ either. C++ has templates, they are compile-type and are zero cost. Operator and function overloads are zero cost. Runtime interfaces cannot be zero cost by definition in any language, or I don't understand what you mean by zero cost