-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
There is a few issues with the current wrap_* macros that ruin DX and actively makes me want to punch my monitor:
-
Can't be formatted with
cargo fmtorrustfmt -
No IDE IntelliSense support for trait methods
wrap_keyboard_handler! { struct DemoKeyboardHandler {} impl KeyboardHandler { // press ctrl+space here, doesn't show any methods } }
-
Need to know class hierarchy and order of implementation, otherwise, you get "Unexpected token in input":
wrap_window_delegate! { struct DemoWindowDelegate {} impl ViewDelegate {} impl PanelDelegate {} impl WindowDelegate {} }
if you impl
PanelDelegatebeforeViewDelegate, you get error.
if you forget toimpl ViewDelegateyou get error.More than often, I have to open wrap_* macro definition to know what I am missing or the shape of a method I want to implement.
Metadata
Metadata
Assignees
Labels
No labels