|
|
|
|
|
by drivebyhooting
12 days ago
|
|
The biggest issue with stenciling is lack of inlining. So for example if the argument to a generic function is an array backed container, then element access will have to go through a method call that cannot be inlined. Besides the call indirection, the compiler also loses optimization opportunities. With the stenciling design many generic functions found in the C++ stl have to pay significant abstraction costs. Anyway, I like the go design. |
|