Oddbean new post about | logout
 nostr:npub1mwg4m445e2md4prxxg8ewtt0gdpmx22gf7kxr9maaemvv9pt745sealagv ClassTag can give you a Class, which the JVM needs, so yes, that's related to RTTI, but the ClassTag itself is generated by the compiler. I mentioned ClassTag because it's the easiest to use, and you basically get the equivalent of C#'s reification.

That library, izumi-reflect, doesn't have anything to do with a RTTI. All type info is exposed in macros, but AFAIK it's no longer easily accessible as a TypeTag, so you have to write a macro to get it 🤷‍♂️