In the picture everything is accessible, but if I make them private, it's going to get a lot cleaner. Also it will be a lot easier for users to work with the API
this is a common pattern called opaque pointer, it's how many C APIs are designed, it's good for encapsulation
Обсуждают сегодня