If I could add one feature from Rust to Go, it would be the question mark operator.
3
1
54
What feature would you add to Rust from Go? (The only answer I can come up with is fast compile :( )
3
3
Although its probably the wrong question to ask. It should probably be, if I could *take away* one feature from Rust to make it more like Go, since the advantage of Go is really its simplicity
1
Replying to @dsilverstone
It's a hard question! I think I would probably simplify something rather than remove something. E.g., Go's pub/priv system is better than Rust's, despite the galaxy brain syntax. It might also be nice to go *slightly* in the direction of Go in terms of making some things magic
2
So long as it's not too magic, one problem I had with my small amount of go hacking was realising where things were and what was going on. The casewise pub/priv stuff was one of the things which really hurt my brain.
1