3 ms·
Touché. I guess a common pattern I find myself doing for Union types is having if statements checking if something is of a type using reflection. When checking
by whimsicalism 5y ago
Touché. I guess a common pattern I find myself doing for Union types is having if statements checking if something is of a type using reflection. When checking if it is none, it is more elegant.