▲ 170 ▼ 'Rust makes coding fun again': Why Linux is moving away from C, according to Greg Kroah-Hartman (www.zdnet.com) submitted 1 month ago by HaraldvonBlauzahn@feddit.org to c/linux@lemmy.ml 99 comments fedilink hide all child comments
[+] db2@lemmy.world -7 points 1 month ago (2 children) Were you trying to post examples of it being easy or do you actually find those hard? permalink fedilink source parent hideshow 4 child comments replies: [–] syklemil@discuss.tchncs.de 7 points 1 month ago I find the C type syntax turgid. It's fine for the most basic types, but the name-in-the-middle style doesn't scale at all, and it's not hard to understand why later languages separate name and type, no matter which side of the name the type goes on. I find Rust easier to read in that regard, even though picking <> for generics was likely done to be familiar for C++/Java types rather than easy to parse. (See also: the bastion of the turbofish) permalink fedilink source parent [–] iopq@lemmy.world 2 points 1 month ago This is why you don't write C, after a while this looks normal and sane permalink fedilink source parent
[–] syklemil@discuss.tchncs.de 7 points 1 month ago I find the C type syntax turgid. It's fine for the most basic types, but the name-in-the-middle style doesn't scale at all, and it's not hard to understand why later languages separate name and type, no matter which side of the name the type goes on. I find Rust easier to read in that regard, even though picking <> for generics was likely done to be familiar for C++/Java types rather than easy to parse. (See also: the bastion of the turbofish) permalink fedilink source parent
[–] iopq@lemmy.world 2 points 1 month ago This is why you don't write C, after a while this looks normal and sane permalink fedilink source parent