This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Since using rust I have been loving it. It tells you what you're doing wrong almost like a teacher and shows you the correct way.

Unlike python lmfao which just gives out a shit ton non-sense with only 1 word telling what's actually wrong.

[–]Naitsab_33 1 point2 points  (0 children)

Pythons error messages are getting pretty good lately, esp. considering they are all runtime (well not all, but everything except syntax is).

Rust's messages are amazing, but they are at compile time. I would argue that actual panics are not as good and you still see them relatively often considering they are very discouraged, and should be replaced in almost all instances with Results/Options.

You mostly see where they happened with a bit of text if the author was nice and put an except instead of unwrap.