You can use e.g. JUnit to test the functionality of your library, but how do you test its type-safetiness with regards to generics and wildcards?
I am trying to determine whether an object pointed by a T* pointer is truly a T object, or some other, unrelated type. I tried dynamic_cast, however it is less than useless, it returns the pointer its
Suppose I have two containers of elements: std::vector<std::string> foo = { \"aa\", \"bb\", \"cc\" };
Suppose, I send a request to an actor and receive its response synchronously: case class MyRequest() case class MyResponse(data:Any)
I want to ask what sort of type safety languages constructs are there on Clojure? I\'ve read \'Practical Clojure\' from Luke VanderHart and Stuart Sierra several times now, but i still have the disti
I\'m actively developing desktop applications, local and network services, some classic ASP.NET, etc., so I\'m used to static compilation and static code analysis. Now that I\'m (finally) learning ASP
Let\'s say we have the following types: sealed trait T case object Goat extends T case object Monk extends T
I have a mixture of C++ classes, some of which store a state variable 0..9 as integer, others use \'0\' ... \'9\'.Currently I do:
I\'m trying to use one of the simplest forms of reflection to create an instance of class: package some.common.prefix;
Yesterday I was at an interview where my interviewer (who admittedly didn\'t claim to be an expert on the subject) stated that \"VB.NET is more weakly typed then C#\" - (At the same time he couldn\'t