C# cleaner signal emission (v2) - #70424
Conversation
|
I'm a huge fan of this. I like how the type is leveraged for better compile-time checking and I especially need the enums as args. Since this is going to break the signal emission API, I say the sooner we merge the better 👍 |
|
This PR does not break compatibility so there's no rush to merge it. I'd love to have a way to emit signals using a typed method but it's not clear which is the best approach. I personally favor my own implementation (#68233) over this PR. My opinion on this PR:
|
|
I kinda agree to the verbosity of this. |
I think so, I'd also recommend using the |
5c4be4a to
66bc079
Compare
|
The alternative implementation from @raulsntos was merged in PR #68233, so I'm closing this PR as superseded. Thank you for working on this! |
Provides a type safe way to emit signals in c#.
Previous:
Now:
I also implemented that enums can be used.