User forgot to include the posts table in the query.
Error line 1 says "Cannot select `posts::columns::id` from `users::table`.
For me, that is more than enough to spot the issue. But if I had missed my morning coffee, 5 lines below I have extra help: "note: `posts::columns::id` is no valid selection for `users::table`"
The rest of the "help" lines I can happily ignore.
Some years ago I came to the conclusion I like Rust compiler errors the most
https://www.inkmi.com/blog/developer-productivity-compiler-e...
A simpler, more jooq like interface with strings would work about just as well.
There is such a thing as going overboard. Remember when Hashtable extended Dictionary in Java, because OOP is teh futureh!
However, comparing Rust traits to template programming seems a bit disingenuous. One is literally a templating engine (albeit powerful one that people got creative with) and the other is part of a fairly cohesive type system (even if it has some downsides).
Also, I think even the most obtuse errors in Rust are still more helpful than average C++ template error.
shaolinspirit•9mo ago
jgilias•9mo ago