Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Null thread

Name: Anonymous 2019-01-08 15:02

Null is a mistake only if you're severely retarded

Name: Anonymous 2019-01-09 7:22

null is ok as long as checking for it is effortless and the fact that something might return null is either clearly documented or checked at compile-time (preferably both). if those conditions are not met, avoiding nulls wherever possible is a sane choice. with current popularity of fluent APIs (understandable: they make pipeline-like operations less painful), there's nothing worse than having to convert code like this:
hax()
.my()
.anus()


to this:
x = hax()
if x:
shit = x.my()
if shit:
FUCK = shit.anus()

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List