this post was submitted on 25 Oct 2025
13 points (93.3% liked)

Rust Programming

9028 readers
3 users here now

founded 6 years ago
MODERATORS
top 3 comments
sorted by: hot top controversial new old
[–] BB_C@programming.dev 13 points 2 weeks ago

I get it – abstractions are cool. They’re supposed to hide complexity so we can focus on cooler stuff. And Rust loves that idea. Traits, generics, lifetimes – layer upon layer of "don’t worry about it honey."

That's such a fundamental misunderstanding of something so basic, that I almost had to stop reading.

[–] Ephera@lemmy.ml 2 points 2 weeks ago

Been hacking away at a library and definitely feeling this one. Some APIs, I'm not yet terribly happy with, and there's always this urge to introduce a macro to hide away the ugly API.

So far, I'm still staying away from it, because I'm just thinking that users will not have an easier time either way. The code they write may look prettier, but if they have to learn custom syntax rules for it, then it isn't easier to understand in the end.
Also, while a macro can clean up some rough edges, it won't fix up an API that's illogical to begin with. Well, unless you make it a turing-complete macro (i.e. proc_macro rather than macro_rules), but that makes it infinitely harder to understand once more.

[–] Artisian@lemmy.world 2 points 2 weeks ago

Per request: "nice post"