-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About package modules #22
Comments
in D:
in Nim:
so it's not quite as clean as in D because Admittedly, it's not that huge of a difference |
I think I actually prefer Nims solution here :) |
But...Nim's solution is a subset of D's. You can do the same thing in D. It's just that D also supports more functionality, which in my opinion doesn't add much value while adding complexity to the module system. |
right, definitely not a big point; i mentioned this issue in the readme for reference, closing |
In nim you can just use export/import together to achieve the same, for example main .nim file from Arraymancer, and then you can just use "import arraymancer" and it's done (and you can import different files (packages?) from subfolders too
https://github.com/mratsim/Arraymancer/blob/master/src/arraymancer.nim
The text was updated successfully, but these errors were encountered: