api-guidelines
api-guidelines copied to clipboard
Update sealed traits pattern
There's no need to have a doc-hidden method to simulate private trait items. They can be placed in the supertrait that performs the sealing. The advantage here is that the compiler enforces that it's not used downstream. I personally use this pattern in a few places.