You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fewer places in user code where unsafe is necessary.
Improved ergonomics, e.g. seamless conversion between basic types
msg_send! and such cannot be made safe, because we cannot verify that the selector's arguments are correct.
But other crates like objc-foundation goes some of the way of implementing safe abstractions on Foundation types (fruity also deserves a mention here).
block <-> closure
block exists and can currently safely provide the closure -> block part, and maybe in the future block -> closure.
objrs takes a completely different approach (we use the dynamic API, they declaratively / statically create classes), but the ideas might get integrated into this project at some point when they're more stable.
I think RustKit is dead?
bindgen might be a viable approach for some of the ergonomics, hadn't considered that before, thanks for the link!
By "high level", I mean:
unsafe
is necessary.Result
.Do you think they belong to this crate? Or maybe it's the job of bindgen and the layers above?
I also found several related efforts:
How do you think their approaches compare to this? Can we combine the efforts somehow?
The text was updated successfully, but these errors were encountered: