Hot take here: we should just remove visibility. Make everything public. Python is doing fine without them.
Zig already made fields public, and Andrew’s explanation for it made total sense (can’t find it now), but the explanation of why functions should be different did not. We should go all the way.
Just now, in the other topic, I had to do a ridiculous dance to get a few function pointers.
Mark functions as private
just as a suggestion for reading purposes and for tooling. Don’t enforce them.
3 Likes