Better HN
topnewbestaskshowjobs
Log inSign up

someziguser

7 karma · joined Sep 28, 2020 (6y ago) · 1 submissions

Submissions

comment 6y ago · link · parent

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.