-
Notifications
You must be signed in to change notification settings - Fork 419
Add 0.15 release notes for function reflection #1768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 0.15 release notes for function reflection #1768
Conversation
a57265c to
ad6897f
Compare
|
I didn't see anything about overloading, will that be in separate notes or did that not land? |
|
Overloading didn't land IIRC. |
Yeah unfortunately. But not too big a deal since that at least gives us more time to test it out. I did briefly mention it in the |
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: MiniaczQ <xnetroidpl@gmail.com>
| Using `FunctionInfo`, a `DynamicFunction` will print out its signature when debug-printed. | ||
|
|
||
| ```rust | ||
| dbg!(String::len.into_function()); | ||
| // Outputs: | ||
| // DynamicFunction(fn alloc::string::String::len(_: &alloc::string::String) -> usize) | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just added this because I think it's really cool we can still print out the full signature, but let me know if it's too much to include for the release post.
Adds release notes for the function reflection feature added this cycle.
This feature spans the following PRs (in order of date opened):
DynamicClosureandDynamicClosureMutbevy#14141DynamicFunctionergonomics bevy#14201DynamicClosure<'static>inFunctionRegistrybevy#14704functionsfeature docs bevy#15086FunctionRegistryinbevy_reflect::funcdocs bevy#15147FunctionRegistry::callbevy#15148Functiontrait bevy#15205Return::Unitvariant bevy#15484This feature has a lot to it. Please feel free to ask for additions/deletions/modifications!