|
|
|
|
|
by zalmoxes
3507 days ago
|
|
The difference is that if I thought the Go style is easier to read/debug I couldn't prevent you from writing it in the complex one-liner way. The go way is a little more verbose/uglier but we are both going to do it in the same way as will the 30 other developers working on the project. |
|
Regardless of how simple the language, there is always more than one way to do things. Rust is just giving you the choice to eliminate a lot of boilerplate if you so desire. In reality most Go users will opt to use the style mentioned above instead of something more verbose/complex and most Rust users will likely opt for the new ? operator.