Domain Specific Language

Category: at work

The nothing/something dichotomy: nullish types in slotted lists

In programming languages with nullish types: null, nil, undefined, and so on, programmers will usually reach for one of the nullish tokens when representing something that can be optional or clearable. Something interesting happens when you combine that form of optionality with another form of optionality: fixed-length lists that represent slots to be filled in.