dynamic-typing
Can't figure out this dynamic typing thing
I\'m putting together a list of interview questions for someone interviewing to be a Cocoa developer. I\'m a programmer, but I\'ve never done Objective-C. I stumbled upon an interesting question that[详细]
2023-04-11 13:03 分类:问答Get object type in runtime
I have the code below. I get an object whose type I don\'t know. I have to check three if conditions to check its type, then make the right cast.[详细]
2023-03-28 13:16 分类:问答Advantages of Weak Typing over Strong Typing
So, I\'ve read a bunch of similar questions on Stack Overflow regarding this issue, and I think I have a good grasp of what the differences between the two are.My question is whether there is any adva[详细]
2023-03-26 11:23 分类:问答Java: How to declare that a variable implements an interface?
In Objective-C, I could do: id<HTTPRequestDelegate> delegate; to say that delegate (a variable of type id) conforms to the HTTPRe开发者_C百科questDelegate protocol (or implements the HTTPRequ[详细]
2023-03-17 17:37 分类:问答Implicit Conversion from Any to Dynamic
Why isn\'t the following working? (Yes, I am working with 2.9.0final and turned the \"-Xexperimental\" option on.)[详细]
2023-03-06 13:13 分类:问答Is there any way to create dynamic types at runtime without having them permanently in the app domain?
My current understanding of dynamically generated types is this: If you generate a type via CodeDom and load it into an AppDomain, ther开发者_如何转开发e is no way to unload that type (i.e. Assembly.[详细]
2023-03-05 01:36 分类:问答Haskell -- get TypeRep from concrete type instance
I want to write a function with this type signature: getTypeRep :: Typeable a => t a -> TypeRep where the TypeRep will be the type representation for a, not fo开发者_JAVA百科r t a. That is, t[详细]
2023-03-04 14:39 分类:问答'pattern matching' on Typeable types
Suppose, for example, we have the following data structure: data Foo = Bool Bool | Int Int | Double Double[详细]
2023-03-02 15:57 分类:问答Implicit Conversion Not Working for Dynamic Type
I am running into a problem when trying to implicitly convert one of my dynamic types. There are two assemblies with definitions similar to the following:[详细]
2023-02-16 14:40 分类:问答Ioc Containers and dynamic languages (take 2)
I\'ve been reading up a lot on Dependency Injection, Inversion of Control, and IoC containers.I al开发者_StackOverflow社区so primarily program in dynamic languages (PHP at work, Python at home).Here a[详细]
2023-02-05 14:14 分类:问答