generic-programming
What do you feel is over-generalization?
Having spent some time playing around in Haskell and other functional languages, I\'ve come to appreciate the simplicity of design that comes from describing problems in general terms. While many aspe[详细]
2023-01-06 21:17 分类:问答C# Extension Method on Type With Generic Type Argument
I’m looking at ways to improve the consistency, brevity, and readability of some code in the application I’m working on.The starting code looked something like this:[详细]
2023-01-05 05:09 分类:问答Datatype-generic programming libraries for Scala
I\'m looking for a Scala library allowing for datatype-generic programming (like Scrap开发者_Python百科 Your Boilerplate, for example). A list of libraries with appropriate links and short description[详细]
2023-01-03 19:26 分类:问答Using pointers, references, handles to generic datatypes, as generic and flexible as possible
In my application I have lots o开发者_如何学Cf different data types, e.g. Car, Bicycle, Person, ... (they\'re actually other data types, but this is just for the example).[详细]
2023-01-02 07:19 分类:问答Function templates for arbitrary STL containers containing arbitrary types
I have an arbitrary STL container C, which contai开发者_如何转开发ns elements of an arbitrary type T.I want to create an std::vector that has a copy of all the elements. What is the cleanest way to do[详细]
2022-12-30 13:22 分类:问答Polymorphism in Delphi Generics
type TParent=class public member1:Integer; end; TChild=class(TParent) public member2:Integer; end; TGArray<T: TParent>=class[详细]
2022-12-30 03:10 分类:问答What are the disadvantages of using templates?
Some of the disadvantages would be its syntax is comp开发者_StackOverflowlex compiler generates extra code[详细]
2022-12-29 02:04 分类:问答How to check if TypeIdenitifier(T) is an Object?
I\'m creating a generic list class that has a member of type Array(Array of ). The problem is the class destruction,because the class is supposed to be used for types from byte to types inheriting TOb[详细]
2022-12-27 20:48 分类:问答Function-Local Static Const variable Initialization semantics
The questions are in bold, for those that cannot be bothered reading a question in depth. This is a followup to this question. It is to do with the initialization semantics of static variables in fun[详细]
2022-12-27 03:40 分类:问答Traversing and filtering a tree in haskell
I am pretty new to Haskell (still working on totally understanding monads).I have a problem where I have a tree like structure[详细]
2022-12-21 02:42 分类:问答