Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In Zig the source files you are importing are implicitly structs. Personally I find it better to keep it consistent, declaring it like any other struct with the use of a built-in function. I don't think there's any advantage to turning it to a typical module import statement given the underlying semantics.


So Zig won't support binary libraries?


It already does, dynamic linking is orthogonal to @import() semantics.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: