Y
Hacker News
new
|
ask
|
show
|
jobs
by
whimsicalism
1526 days 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.