For better or for worse, traditional UI toolkits
-
-
yes, "wrapping around an existing fixed oo API" is a harder problem to solve, but that's not the kind of thing Matthew seems to be talking about
1 reply 0 retweets 2 likes -
I don't even care about wrapping Building something in that pattern is also terrible. People might argue that there are better ways to write UIs... But all of them seem to be JavaScript
4 replies 0 retweets 3 likes -
Replying to @erincandescent
The dominant pattern in rust for this these days is ECS (And c++ seems to be moving over to this too)
2 replies 0 retweets 4 likes -
Replying to @ManishEarth
I'm sure this has lots of merit, but.. .. That's a great pile of additional complexity you're bringing in
1 reply 0 retweets 1 like -
Replying to @erincandescent
I don't see how OO isn't. especially for Rust's typesystem needs: making oo work with lifetime subtyping is hard we ran across a mini version of this problem for specialization and I don't think we ever properly could figure it out
2 replies 0 retweets 8 likes -
Replying to @ManishEarth
Maybe with your language designer hat on Not with the language user hat on
2 replies 0 retweets 0 likes -
Replying to @erincandescent @ManishEarth
Honestly there are an awful lot of domains where I discount Rust immediately because the fact that I can't bring some private data along with my reusable code leaves me ripping hair out
2 replies 0 retweets 0 likes -
Replying to @erincandescent
Which C++ feature(s) did you have in mind here more concretely? (Like, private struct fields + public impl functions seems like it would fit the definition in Rust, so I'm assuming it's not that.)
1 reply 0 retweets 0 likes -
Replying to @glaebhoerl
The fairly obvious one is anything where I might want virtual methods and _upcalls_ (And I can't quite work out why this causes issues with lifetimes if you always treat &self as a whole object lifetime even if pointing to a superclass)
1 reply 0 retweets 0 likes
The problem is that subtyping in H-M style typechecking is really obnoxious. Rust leans on the fact that the only subtyping in Rust is lifetimes, which can be done at a later stage after H-M typechecking.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.