When comparing Rust vs Nim, the Slant community recommends Nim for most people. In the question“What are the best languages for writing command line utilities?” Nim is ranked 2nd while Rust is ranked 9th. The most important reason people chose Nim is:
There are generics, templates, macros in Nim. They can allow you to write new DSL for your application, or avoid all boilerplate stuff.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Non-PvP servers are available
If worrying that another player might kill you and loot your corpse is not your thing, or if you don't want to deal with someone constantly harassing your base, there are servers available that take away the risk of other player's malicious behavior.
Pro Building system is simple, efficient and intuitive
Hold a key while holding a hammer, and with your cursor, select the piece you want to build.
Upgrading a piece of building is done in the same fashion.
Pro Game's multiplayer nature creates psychological tension
While there's obviously potential for working together with other players towards achieving certain goals, the more likely scenario is someone trying to kill you to get your stuff. Or even worse, deceiving you in working together to achieve a particularly difficult goal only to stab you in the back when you're not needed anymore. It's easier to take stuff from someone else than gather it yourself. And since your base is a the perfect bullseye to other players, there is constant threat of griefing.
Pro Lots of variety in ways to die
Fauna, including bears and wolves, is trying to kill you, radiation, that's ever-present, is trying to kill you, zombies, in a multitude of colors, are trying to kill you, other players on the server, equipped with guns, are most definitely trying to kill you, and you, yourself, if you don't find food, will die.
Pro Base building allows for less punishing gameplay
Because you can build your base that you respawn back to when killed, losing only what you had on you at the time of death, it allows getting back to where you left off quickly.
Pro Great metaprogramming features
There are generics, templates, macros in Nim. They can allow you to write new DSL for your application, or avoid all boilerplate stuff.
Pro Strict typing
Checks your code at compile time.
Pro Has built-in unittest module
With built-in "unittest" module you can create test with a very readable code.
Pro Has built-in async support
Nim has "asyncdispatch" module, which allows you to write async applications.
Pro Compile-time execution
Nim has a built-in VM, which executes macros and some other code at compile time. For example, you can check if you're on Windows, and Nim will generate code only for it.
Pro Really cross-platform
The same code can be used for web, server, desktop and mobile.
Pro Easy to read
Nim has a lot of common with Python in terms of syntax. Indentation-based syntax, for/while loops.
Pro Multi paradigm
Imperative, OOP, functional programming in one language.
Pro Easy to integrate with another languages
You can use Nim with any language that can be interfaced with C. There's a tool which helps you to create new C and C++ bindings for Nim - c2nim.
Also, you can use Nim with Objective C or even JavaScript (if you're compiling for these backends).
Pro Garbage-collected
You don't need to deal with all those manual memory allocations, Nim can take care of it. But also you can use another GC, or tweak it for your real-time application or a game.
Pro Type interferencing
You only need to specify types in your procedures and objects - you don't need to specify type when you're creating a new variable (unless you're creating it without initialization).
Pro Built-in Unicode support
You can use unicode names for variables, there is "unicode" module for operations with unicode.
Pro Supports UFCS (Unified Function Call Syntax)
writeLine(stdout, "hello") can be written as stdout.writeLine("hello")
proc add(a: int): int = a + 5 can be used like 6.add.echo or 6.add().echo()
Cons
Con Hard to play solo
Rust is all about clans fighting for territory and loots. Solo players (or ones with a couple friends) can easily be killed by bigger clans.
Con Not yet finished (buggy)
Since it's a Steam Early Access game it still has lots of glitches, placeholder text and unreliable infrastructure. But for all its unfinished nature, it's surprisingly playable.