Bjarne Stroustrup, creator of C++, has issued a call for the C++ community to defend the programming language, which has been shunned by cybersecurity agencies and technical experts in recent years for its memory safety shortcomings.

  • DaPorkchop_@lemmy.ml
    link
    fedilink
    arrow-up
    9
    ·
    12 days ago

    I will use Rust when const generics are actually useful and we get some viable alternative to variadic templates.

    • jenesaisquoi@feddit.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 days ago

      I know very little about C++, can you help me understand at a very basic level what variadic templates are? Is it about a template taking a varying number of generic types? If it is, then you can get something very similar in Rust by implementing a trait for tuples of various lengths.