Re:Yes, I am still learning Rust
by weiming on Thursday March 12, 2020 @06:50PM
(#22562810)
If you can share, how usable is your approach boilerplate/types wise? Would love to go all into Rust but the AppKit/etc. bindings get clunky very easily.
[ Parent
| on HN ]
I've actually settled on an approach that feels just like writing Cocoa/AppKit/UIKit. It effectively exposes wrapper types that loop in delegates, so you wind up with a feeling like you're writing classes - you just can't subclass. I've tried to keep the conventions (entry points, lifecycles, method naming) very similar so knowledge transfer is there.
I have a repo for it but the example is pretty out of date. Can see about updating it when I've got the next push ready.
Will keep an eye out on your GitHub, just saw the repo you already have there. This is a heroic effort!
If you're interested, you can kinda see what I've been trending towards here: https://twitter.com/ryanmcgrath/status/1238285152771440640
The goal is to feel very, very familiar to anyone who's done Cocoa work before. :)