Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fallow64
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
fallow64
1y ago
Every file is an implicit struct, so importing a module is just importing a struct with static members. You can also do something like: ```Point.zig x: i32, y: i32, const Self = @This(); fn add(self: Self, other: Self) Self { /&#