the.bay.news

Idiomatic way to hide 'internal' implementation details

Ziggit
Idiomatic way to hide 'internal' implementation details
Building a small graphics engine, I’ve caught myself doing kind of pub fn _internal(...) from time to time to incapsulate stuff. But this cannot be the way to go in Zig, right? How do you separate your internal implementation details from the public facing API (besides vtables) ? And do you? Since Zig doesn’t have per-field privacy, it seems very intended..

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.