News for hackers. Stuff that matters.
Re:What is Rust and why is it so popular? by steveklabnik on Tuesday January 21, 2020 @03:21PM (#22111090)
> Actually how about compile type inference not only in function bodies?

This is actually an explicit design decision; it means that the analysis is tractable, and that you don't get spooky-at-a-distance error messages.

Re:What is Rust and why is it so popular? by jhayward on Tuesday January 21, 2020 @06:16PM (#22112825)
It's a major detractor, especially for people new to Rust.

The number of times I see people recommend "just cut and paste in whatever type the compiler said it expected ..." just makes my hair curl.

It also tends to make the code more obscure and unreadable, sometimes completely so.

Re:What is Rust and why is it so popular? by jane_red on Tuesday January 21, 2020 @03:29PM (#22111176)
Hmm, I see. It makes sense.