3 ms·
Most Python translates into Nim quite easily, actually.
by goodpoint 5y ago
Most 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.