1056
Writing C++ is easy. (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] glad_cat@lemmy.sdf.org 19 points 1 year ago

Rust is nice, unless you have a traits compilation error from a 3rd party library using types that are more difficult to write than C++ templates.

[-] philm@programming.dev 5 points 1 year ago

yeah as nice as it is what you can achieve with trait-bounds there are definitely trade-offs, being compile time and error messages, and sometimes mental complexity, understanding what the trait-bounds exactly mean... I really hope, that this area gets improvement on at least the error-messages and compile time (incremental cached type-checking via something like salsa)

[-] Flipper@feddit.de 1 points 1 year ago

I much prefer getting told of that it doesn't match a trait than get 600 characters of which the majority is implementation detail of global allocators und from what exactly the string is derived.

[-] philm@programming.dev 1 points 1 year ago

Depends on what trait bound error messages you have had yet, I had 1000 lines long already, where it's not obvious at all what is meant (and is often a very simple fix). But I'm sure this will get better over time, there's already a bigger ongoing redesign of the type system solver, so maybe it will be integrated into stable rust soon.

load more comments (1 replies)
this post was submitted on 25 Jul 2023
1056 points (98.2% liked)

Programmer Humor

19572 readers
1640 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS