Re:Rust vs. Go
by icen on Thursday January 19, 2017 @04:56AM
(#13434489)
If a struct is public, and all its members are public, you can just create a new instance of the struct with braces (in that case, it would be `OpenSocket { data: 12 }` - or whatever value you like), not what is necessarily correct. By having a hidden zero sized struct member, you need to use the library's api to construct them.
[ Parent
| on HN ]
There are no comments on this comment yet.