Sounds very interesting. Care to elaborate more? Im fairly new to c++ and I'm always running into better practises, libraries, gotchas, etc everday, hah
if you’re new to c++, in my opinion, you shouldn’t even look at the reflection features yet. There are few good use cases for it. If you’re not familiar enough with the more mature language features yet, it can be easy to overuse reflection.
Though it depends on how “new” you are to c++. Also, again, just my personal opinion.
Keeping in mind that Unreal Engine is pretty non-idiomatic, you can read up on how Unreal Engine 5 does reflection. Mine is similar, though I designed mine mostly separately (have been working on this idea for over a decade).
In the MUD project, I use reflection for serialization, garbage collection, script-binding, user-help generation, and enum-to-string functionality, plus most likely other things I forgot :)
View all comments
Show parent comment
3
u/enl1l May 03 '26
Sounds very interesting. Care to elaborate more? Im fairly new to c++ and I'm always running into better practises, libraries, gotchas, etc everday, hah