rust-delegate
dislike-in-rust
rust-delegate | dislike-in-rust | |
---|---|---|
8 | 2 | |
418 | 11 | |
- | - | |
6.7 | 0.6 | |
4 months ago | about 1 year ago | |
Rust | ||
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rust-delegate
-
On inheritance and why it's good Rust doesn't have it
Ah, that answers the first question, as to how inheritance is superior to manual delegation. By the way, this crate seems to do a good job of supporting delegation: https://crates.io/crates/delegate. I have nothing against this in principle.
-
Fellow Rust enthusiasts: What "sucks" about Rust?
This is certainly one that's bugged me too. There's the delegate crate which helps, but is still a decent amount of boilerplate due to macro limitations
- Enum variants share Trait while Parent does not - A Better solution?
-
Hey Rustaceans! Got a question? Ask here! (44/2022)!
As u/onomatopeiaddx said, it isn't possible since macros only have access to the token tree it is given. I don't see why a newtype wouldn't work tho. and to help with newtypes you may want to have a look at the delegate crate
-
The Rust RFC process does not seem as amazing as I initially thought
Macros, probably. For example this one, that was already made by someone else, published on crates.io and is actively maintained. If the feature is already possible in rust, but requires a lot of boilerplate, then macros are the answer 99% of the time.
-
Inheritance to composition
delegate crate would reduce some boilerplate.
- Is there a way to append to struct in Rust?
dislike-in-rust
-
Fellow Rust enthusiasts: What "sucks" about Rust?
I'm so glad you asked: https://github.com/Lucretiel/dislike-in-rust
-
[Blog post] When Rust hurts
I've been unapologetic about my adoration for rust (even some of the weirder stuff (eg * vs ref), which still somehow plays directly into my intuitions and comfort zone when programming). I know there's stuff I don't care for, but when put on the spot I can never recall what any of it is, so I started a public list of all the things I'm not a fan of, just so that I don't come off as a total shill.
What are some alternatives?
born - Remove code duplication from Struct and Enum with functional macros.
storages-api
pollster - A minimal async executor that lets you block on a future
getrandom - A small cross-platform library for retrieving random data from (operating) system source
rust-orphan-rules - An unofficial, experimental place for documenting and gathering feedback on the design problems around Rust's orphan rules
compiler-team - A home for compiler team planning documents, meeting minutes, and other such things.
SHLL - An experiment of high level code optimization
askama - Type-safe, compiled Jinja-like templates for Rust
azure-sdk-for-net - This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.