• 47 Posts
  • 439 Comments
Joined 1 year ago
cake
Cake day: September 1st, 2023

help-circle

  • onlinepersona@programming.devtoProgramming@programming.devSafe C++
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    8
    ·
    edit-2
    5 days ago

    auto isn’t dynamic typing it’s just type inference.

    I’m aware, but one of the big arguments I’ve heard about dynamic typing is “I don’t know which type it has when I read the code”. Well, auto looks just like var in that regard.

    Lambdas are just a way of defining methods in place. It has nothing to do with callbacks.

    Callback definition from wikipedia:

    In computer programming, a callback is a function that is stored as data (a reference) and designed to be called by another function – often back to the original abstraction layer.

    This is exactly what lambdas are often used for in C++.

    Anti Commercial-AI license


  • onlinepersona@programming.devtoProgramming@programming.devSafe C++
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    19
    ·
    5 days ago

    C++ continues to be the dumping ground of paradigms and language features. This proposal just aims to add even more to an overloaded language.

    C++ programmers mocked languages for being dynamically typed then they introduced auto, they mocked JS for callback hell and introduced lambdas, they mocked Rust devs for being lowskill C++ devs who can’t manage their own memory and now they are admitting they can’t manage it themselves either.

    It’s going to be come like the x86 instruction set or windows that is backwards compatible with stuff from 30years ago just accumulating cruft, unable to let go.

    Anti Commercial-AI license

















  • Again, the Linux kernel needs more funding. For crying out loud, these kinds of people holding back progress should be made obsolete (by bringing in and paying talent that is willing to work towards a brighter future with less memory errors, a sane tech stack with better tooling, and better processes). Holding back progress because of their incessant pearl clutching “but my dearest C!!!” Just hurts everybody and impedes progress.

    Of course blindly adding the latest and greatest is asking for trouble. Assessing risk, weighing options, making a plan and continuously assessing impact is definitely important, but straight up blocking the road on principle is extremely unproductive.

    Anti Commercial-AI license