Comment Comment by Peaker Then what you have is not "anything". You have an expression problem:Either each element has some "handler" that does the right thing for that data type.Or you have a set of cases that each data can be, and you handle them all.Neither is just "any type". And static types are very suitable to describe either. parent Peaker 8 years ago
Either each element has some "handler" that does the right thing for that data type.
Or you have a set of cases that each data can be, and you handle them all.
Neither is just "any type". And static types are very suitable to describe either.