3 ms·
Nim is nice but it's not dynamic so replacing a lot of the use cases of Python/Ruby (or R) would be a pain. Like, I'm not going to do any data munging in Nim w
by Mikeb85 5y ago
Nim is nice but it's not dynamic so replacing a lot of the use cases of Python/Ruby (or R) would be a pain. Like, I'm not going to do any data munging in Nim when the others exist, exploratory programming in Nim is also sub-optimal. That being said, it's a nice language, way easier to write than any other statically typed language I've used, I never used Pascal/Delphi but Nim makes me appreciate that whole family of languages a lot more (Nim is basically a modern Pascal with Python's significant whitespace that compiles to C).
- goodpoint 5y agoMost Python translates into Nim quite easily, actually.
- Mikeb85 5y agoNot really. Proc vs def, let and var keywords, Pascal style ranges and arrays, etc... I found C# is closer to Nim when it comes to translating code than Python is. The semantics are pretty different, especially since it seems everyone uses numpy in Python for any sort of array maths.
- goodpoint 5y agoThese are two different languages: it's only normal that syntax will be different. Yet Python is a dynamically typed language and translating it into many statically typed languages requires and almost complete rewrite. Translating it to Nim is surprisingly easy in comparison.