Re:Anti-if: The Missing Patterns
by rejschaap on Saturday June 11, 2016 @03:35AM
(#11882505)
It is more brittle, sometimes the best you can do is to prefer empty collections over null. Some environments do offer a solution by using parameter annotations. Personally I do a lot of C# with resharper where you can add the [NotNull] attribute to a parameter, which enables some compile time checking.
[ Parent
| on HN ]
There are no comments on this comment yet.