27 Jun
2006
27 Jun
'06
3:29 p.m.
Am I the only one whose first instinct upon reading this is "EW!"?
You are not the only one, judging from my own experience. I made my own sort of algebraic datatypes / abstract datatypes in C# by using Enums and Objects and runtime casts. It works, but the code itself is hairy. I guess the good news is that once I built the ADT the---in my case, ugly---implementation is hidden. Jared. -- http://www.updike.org/~jared/ reverse ")-:"