Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leagreeer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
leagreeer
1y ago
In every different zig project you have to read the source code to see how their specific ad-hoc interface scheme works. Case in point - this article uses a method `pub fn implBy(impl_obj: anytype)` to connect instances to a vtable. The n
2.
▲
by
leagreeer
1y ago
> Do all code bases use the same pattern? Unfortunately no - it's a complete free for all - which is the problem. Conventions are great to a point but language enforced constructs are better.
3.
▲
by
leagreeer
1y ago
Agreed that native interface support is table stakes for any language now. It would avoid so much boilerplate - nevermind the time wasted examining the code to see what kind of ad-hoc interface any given piece of code is using - and how to