Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 13
  1. Swift for C++ Practitioners, Part 13: Flexible Array Members Flexible array members are an odd feature of C that is intended to capture the pattern of a variable-length structure consisting of a header followed by an array of some element type.

  2. Swift for C++ Practitioners, Part 12: Move Semantics Since their introduction in C++11, move semantics have been an integral part of programming in C++.

  3. Swift for C++ Practitioners, Part 11: Domain-Specific (Embedded) Languages with Result Builders The prior installment of this series covered operator overloading in Swift in great detail.

  4. Swift for C++ Practitioners, Part 10: Operator Overloading One of the ways in which C++ lets you define library types that feel like built-in types is operator overloading: you can define you own type (say, an big integer or a matrix type), and along with…

  5. Swift for C++ Practitioners, Part 9: Extensible Literals One of the things that I really liked about C++ was the ability to create great libraries: the combination of classes, templates, and operator overloading made it possible to create abstractions that

  6. Swift for C++ Practitioners, Part 8: Global Variables At the end of part 7, I promised I was going to talk about Swift language extensibility next.

  7. Swift for C++ Practitioners, Part 7: Closures Throughout this series, I've been using closures in examples without really defining them.

  8. Swift for C++ Practitioners, Part 6: Error Handling C++ has a few different mechanisms for handling errors.

  9. Swift for C++ Practitioners, Part 5: Type erasure & metatypes What do you do in C++ when you want to support different types, but don't want to have one template instantiation per type?

  10. Swift for C++ Practitioners, Part 4: Generics Swift's generics system is, on its surface, similar to C++ templates: functions and types can be parameterized (e.g., a Set type has a parameter T) and can be used with any suitable generic arguments (e.g., Se…

  11. Swift for C++ Practitioners, Part 3: Extensions and Access Control Let's take a short break from the Swift type system to talk a bit about code organization in Swift, which is quite different from how it's handled in C++.

  12. Swift for C++ Practitioners, Part 2: Reference Types & Optionals In our first episode, we talked a lot about value types.

  13. Swift for C++ Practitioners, Part 1: Intro & Value Types There is a Getting Started guide for Swift that's good for a general audience.