Hacker News new | ask | show | jobs
by rishav_sharan 2265 days ago
I am currently working on a tiny game in nim using Raylib. I had some initial friction with Nim, but i like using the language now. You'll do well to stop trying to use Nim as an oops language and just use it as a better C. The language syntax is clean, and the std lib has all that I need.

One bit which I still hate is simply how imports work in Nim. My project pretty much has a header like file containing function and variable signatures which can be called from other files.

For someone used to modern languages, it just feels so archaic.

But overall it is still a fantastic language and I am excited to try the ARC gc

1 comments

> One bit which I still hate is simply how imports work in Nim. My project pretty much has a header like file containing function and variable signatures which can be called from other files.

You mean how `import` works or are you using `include`? If the latter then I would strongly discourage you from using it.

As for the former, you can use `from module import nil` everywhere if you really want.