> it's more important to have these null checks on a library's public interfaces
No it isn't.
Re:Const all the things?
by stevenhuang on Thursday January 27, 2022 @05:34AM
(#30098698)
Library authors and users would disagree with you.
More nuanced, it's more important to have these null checks on a library's public interfaces than a library's private interfaces. Private interfaces can do with asserts for null check.