• Bytestream@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    C++ dev with minimal experience of composition here, but this is a great article and it’s something I’ve been trying to play with more and more. Out of curiosity, does anyone know if there are any known big pitfalls to avoid with composition (thinking of things like the diamond problem)?

    • Barbacamanitu@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      I don’t know of any. Give Rust a try. Traits and trait bounds will change the way you think about code.