3 ms·
"In a statically-typed language like C# or Java I can ask objects (and in C#, primitives) what they are all day long." Which shows that Java and C# are a hybri
by jimbokun 14y ago
"In a statically-typed language like C# or Java I can ask objects (and in C#, primitives) what they are all day long."
Which shows that Java and C# are a hybrid of static and dynamic features. Using reflection and introspection to invoke behavior at run time is dynamic-language behavior. More strongly typed languages such as Haskell won't allow you to do this, as far as I know.
- chongli 14y ago>More strongly typed languages such as Haskell won't allow you to do this, as far as I know. Haskell has Data.Typeable. It'll let you reify some types for run-time reflection.