3 ms·
That code is probably overly complicated for what it does. I do agree though that Rust, like C++ tends to hide the logic in implementation detail (pointer owne
by alkonaut 9y ago
That code is probably overly complicated for what it does.
I do agree though that Rust, like C++ tends to hide the logic in implementation detail (pointer ownership, memory management code etc sometimes outweighs the actual business logic)
Obviously these things aren't in Ruby or C# because it's implicit.
But this is what systems programming is: you tell a computer both what to do, and exactly how to do it.
I'd love for a systems programming language to look like Ruby or Haskell but I can't say I think it's possible.
I once imagined a language should have two tiers where you can write the bulk (slow) of your code in a simpler gc'd language and the core parts in a lower level subset of the language. Today I do that with C# calling C for example, but the boundary too wide. Just having the same build system and package manager for example would be fantastic.