Hacker News new | past | comments | ask | show | jobs | submit login

Multiple inheritance in its many forms (including interfaces as found in Java/C#/Golang) always makes casts interesting, even sometimes when methods aren't involved.

Somewhat related stuff that might be interesting:

dynamic_cast in C++: http://mentorembedded.github.io/cxx-abi/abi.html#rtti

Golang's interface casts (also used by Swift I believe): http://research.swtch.com/interfaces

Speculation for interface casts in Java: https://wiki.openjdk.java.net/display/HotSpot/PerformanceTec...




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: