It would be nice if icrate could mark certain protocols / methods as safe to override, such that define_class! could (after checking that all types are the same) allow just doing:
define_class!(
// ...
impl MyClass {
#[method_id(init)]
fn init(this: Allocated<Self>) -> Id<Self> {
todo!()
}
}
impl MyProtocol for MyClass {
#[method(protocolMethod)]
fn protocol_method(&self) {}
}
);
(Notice the lack of unsafe impl)
It would be nice if
icratecould mark certain protocols / methods as safe to override, such thatdefine_class!could (after checking that all types are the same) allow just doing:(Notice the lack of
unsafe impl)