3 ms·
> Rust code is significantly more readable. You should put down the Rust kool-aid. Rust is incredibly hard to read due to its sigil and abbreviation heaviness.
by chx 5y ago
> Rust code is significantly more readable.
You should put down the Rust kool-aid. Rust is incredibly hard to read due to its sigil and abbreviation heaviness.
- bfrog 5y agoI guess I didn’t see it that way, then again I’ve been bitten by C++ which is crazy land for overloads
- staticassertion 5y agoI think that's obviously a matter of opinion. I don't think Rust is hard to read at all, nor do I think of it as being particularly sigil heavy, but that's me. I think the syntax is probably unfamiliar for some, and familiarity is almost always what people mean when they say "readability". Coming from c++, Rust was pretty familiar. PHP isn't that hard to read either.
- chx 5y agoNo, what I mean is https://github.com/rust-lang/rust-wiki-backup/blob/master/Sigil-reference.md https://github.com/rust-lang/rust-wiki-backup/blob/master/Si... and that's just pointers, you have #[] #![] and then three ways to invoke a macro !() !{} ![] and of course a lot more. Maybe all this is necessary for a system level programming language, fine, but don't tell me this is easy to read.
- staticassertion 5y agoI have no problem telling you that Rust is extremely easy to read.
- staticassertion 5y agoOh, and the @ ones don't even exist anymore, haven't for like a decade afaik
- mustache_kimono 5y ago> but don't tell me this is easy to read. Most Rust programmers just never, ever have to deal with pointers like this. And most code in the wild looks nothing like this. Yes, it's there if you need it, but in practice you will never read anything like it. Readability is the most suspect of all the anti-Rust arguments to me, because, as others have noted, it's almost always about familiarity. The most senior parent comment is someone explaining how their 100KLOC PHP command line program(!) was more concise and readable than Rust! PHP as the exemplar of readability. Think about that. Look -- if I really loved PHP and was forced to write Rust, I might really hate it. But I think the world of people who really love PHP is pretty small compared to the world of people who have lived with PHP because that was what was familiar. Folks let's climb off the bus to crazy town.
- kaba0 5y agoDepends. Rust is quite readable for a low-level language that does expose every little bit of detail of memory-management. But I do agree that we should not over-promise its readibility.