Comment by nickpsecurity
10 years ago
I appreciate it. So, it looks weird because it's an experiment with something non-standard? Makes sense. Things stay clean overall.
10 years ago
I appreciate it. So, it looks weird because it's an experiment with something non-standard? Makes sense. Things stay clean overall.
That's it. For the most part, one would just export the symbols from given modules as needed (and a lot of the properties on some of the ref object types are needlessly exported, too, which makes it worse)
One other thing is that the {.compile.} pragma in term.nim is not needed anymore, as Nim's stdlib has added a lot of those in[0], but it does show how easy it is to bridge between the two languages (and I'm not much of a C developer!)
[0] https://nim-lang.org/docs/terminal.html
Ah. That link is the cleaner look I was expecting. Makes sense.