3 ms·
C# is among the languages that influenced Rust's design :)
by neonsunset 3y ago
C# is among the languages that influenced Rust's design :)
- jimbob45 3y agoI wish it had. C# makes it effortless to write high-level and low-level code that lives together. Want pointers and manual allocation? It’s yours. Wanna ignore all that and write interfaces and Java-style classes? You can do that too and pretend that pointers don’t exist. Conversely, Rust never lets you do anything above a mid-level effortlessly. Traits barely get you halfway to typeclasses and you still have to mess with the borrow checker no matter what you’re doing. Add in lifetimes and even simple high-level code gets bogged down with extraneous low-level details.