Parameterised structures/unions used as ports

In reply to alexholland:

My suggestion would be to avoid using struct/union as your “higher level” object, and instead just use an interface. Combining interfaces and structs/union while possible, usually adds too much clutter.

–Mark