Adding a new feature to dynamo-browse and now I’m beginning to wonder if this is why JavaScript has both a null and undefined type. In short: dealing with null pointers suck. They suck in Go and I’d imagine they’d suck a million times more in C. Better to have a dedicated type representing an undefined value, with all the associated methods to simplify the code.

The thing is: JavaScript should’ve not exposed this to the user. Do they really care that nil and undefined are two separate things? Was it worth the added confusion. Hmm. I’ll try not to make the same mistake.