News for hackers. Stuff that matters.
Re:Const all the things? by stevenhuang on Monday January 24, 2022 @08:41PM (#30066791)
But it is a reasonable rule, hence it being a general requirement in a lot of places.

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.

Re:Const all the things? by quotemstr on Tuesday January 25, 2022 @03:38PM (#30077691)
> 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.