Stanislav Kirichokswiftdev.hashnode.dev·Jul 10, 2023Exploring Dynamic Casting and Type Erasure in SwiftIntroduction The latest WWDC23 introduced many new features in Swift and the broader ecosystem providing developers with opportunities to enhance their skills and stay up-to-date. It's always beneficial to revisit previous sessions to reinforce cruci...51 readsSwift
Paul Mattioneradiantsoftware.hashnode.dev·Apr 19, 2023Getting Type Names in C++For logging and debugging it can be extremely useful to get a string for the name of a type in C++. However, the standard library doesn't supply a great way of doing that. We don't want to use the standard typeid operator, std::type_info, or std::typ...1 like·519 readsC++
Paul Mattioneradiantsoftware.hashnode.dev·Apr 14, 2023C++ Type Erasure on the Stack - Part IIIIn Part I of this blog series, we covered how to convert our type name to a string, how to safely store type-erased objects, and how to handle trivial types (AnyTrivial). In Part II we covered how to manage type-erased storage of general types (AnyOb...469 readsC++ Type Erasure on the StackC++
Paul Mattioneradiantsoftware.hashnode.dev·Apr 13, 2023C++ Type Erasure on the Stack - Part IIIn Part I of this blog series, we covered how to get a string with our type name, how to safely store type-erased objects, and how to handle trivial types. Now we'll cover how to handle type-erased storage of general types (AnyObject): ones whose cop...10 likes·563 readsC++ Type Erasure on the StackC++
Paul Mattioneradiantsoftware.hashnode.dev·Apr 12, 2023C++ Type Erasure on the Stack - Part IType erasure is where the type of an object is hidden so that the object can be utilized in a type-independent manner. Type erasure is extremely useful in several scenarios, including heterogeneous containers (containers that store objects of differe...3.1K readsC++ Type Erasure on the StackC++