News for hackers. Stuff that matters.
Re:Fast Rust Builds by void_mint on Monday September 06, 2021 @12:51PM (#28435587)
> No, is HOW Rust use type signatures.

No, I don't really agree. The example was "def read(path)", which is intentionally vague and any typed language would clarify.

Your points can be/are valid, but they don't really change the fact that the above example was a cherry pick, and Rust's (over)use of symbols and special characters make it, again, about as hard to read as one could imagine. Just because you _can_ derive meaning from it doesn't change that.

Re:Fast Rust Builds by mamcx on Monday September 06, 2021 @01:02PM (#28435711)
Ok, so how you do it or what can be used as counter-example?
Re:Fast Rust Builds by void_mint on Tuesday September 07, 2021 @12:05AM (#28440821)
func Read (p Path) ([]byte, error)

From your post:

> What is path? Anything that can become path on the file system.

> What it read? Anything that can be pointed with that PATH

> What it return? Vec of bytes or a IO::Error

Re:Fast Rust Builds by mamcx on Tuesday September 07, 2021 @11:10AM (#28445822)
With io::error and is set!
Re:Fast Rust Builds by void_mint on Tuesday September 07, 2021 @01:07PM (#28447187)
Right...so it's about types, not Rust.