I’m looking to answer the question: “is there any performance overhead of using interface{}
vs any
?”
I understand that they are semantically equivalent, but I’m interested in how this is handled. Is this only affecting the compilation process? Is any alias info included in the binary? Is there some special handling for any
?
I like that any
is easier on the eyes, but I’m worried it might incur some (even small) performance cost.