I'm honestly not following the reasoning here. Unlike C, Nim by default does 
not expose the members of a record type. So, in order to have information 
hiding, I would simply not make them externally visible. You can't do that in 
C, because as soon as you include a typedef for a struct there, you also get 
access to the members (because C doesn't have the equivalent of `private` or 
`protected` that C++ offers).

Reply via email to