3

bevy_reflect is literally the best thing since sliced bread

It allows you to do type and value reflection IN RUST!! A compiled language with dynamic runtime reflection of values. And with custom annotations on fields and structs too like

#[derive(Reflect)]
#[@SomeDataIWantToAttach {x: 20, y: 10} ]
struct MyComponent {
#[reflect(@MyCustomRangeAnnotation(0..10))]
pub num: u32,
}

It is nice. It is so nice

Comments
  • 1
    Sounds good. Python has a nice reflection system btw. Wanted to write own doc system because I don't like any of them or they do only python. I just realize now, pdoc3 is perfect, if it's made well, I could just add C to supported language myself. It would have at least a layer / interface between the language to doc and the doc system... Hmm. Project for future: extending pdoc. (not pydoc)
Add Comment