Evolution of a Rust Programmer
Junior: Static Types Only
Senior: Generic Types + Traits, maybe some Static Types
Ancient: littany of where clauses and Higher Ranked Trait Bounds
Eldritch: Box<dyn Any> 
-
Show this thread
-
-
-
Replying to @mgattozzi @mycoliza
I do wonder about writing rust in a purely OOP (or possibly C) style where all functions are void and just take a bunch of mut refs
3 replies 0 retweets 5 likes -
-
i did, at one point, think it would be funny to write a Rust macro for generating inheritance hierarchies via deref coercions but i never really finished it
1 reply 0 retweets 4 likes -
Replying to @mycoliza @mgattozzi
oh boy I mean I don't use inheritance much as an OOP dev but oh boy
3 replies 0 retweets 7 likes
If you've ever looked at the attributes API's internals it's super inheritance happy. Porting the guts to Rust (https://github.com/rails/rails_fast_attributes …) was certainly an eye opener. *SO MANY* important invariants that I didn't even realize I had got revealed
-
-
Oh neaaaaaat
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.