|
|
|
|
|
by kasey_junk
4538 days ago
|
|
Tagged types also have their problems. 1st they don't propagate, call a function on the tagged type and it returns the underlying type. 2nd they aren't type safe against the tagged type, so you can pass tagged types into functions that take the underlying type by default. 3rd in practice my code with tagged types ends up having lots of boilerplate and/or magic code that is hard to understand. 4th there are some pretty heinous compiler bugs that you will encounter with tagged types. |
|