I’m not really sure. My not totally informed sense is that this is likely to be
generally slow since you have to check the type every time to determine what
the inner field means.
But someone with more knowledge of Julia internals would need to confirm that.
— John
On Jan 6, 2014, at 10:34
There may be two separate issues here.
- Without putting concrete types on x and y, it will never be fast. But let's
suppose you planned to do that (as you did for the types in your gist), and
were just being brief in your email.
- There is no penalty for making B and C subtypes of A;