• 33 Posts
  • 948 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
    7
    ·
    edit-2
    2 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
    18
    ·
    2 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

















  • So is that how courts work for you? You are guilty because you are accused?

    Lawyer: Your honor, the defendant is accused of having said despicable thing and showing repulsive behavior. I quote from a newspaper article that quotes from a group, that doesn’t provide a source: […]
    Judge: The accusations are proof of wrong-doing and thus are sufficient to convict this criminal of being a “libertarian bro who only thinks of themself and tries to hide behind ‘just focus on the code!’, thinking it’ll excuse right-wing behavior”.

    That’s not how it works. I doubt @savoy@lemmygrad.ml read the article. You just quote accusations and provide it “evidence”, “proof” or as “support of who he was”, and not a single link to any of such action displayed in the accusations.

    The article describes exactly this fear of being sanctioned in secrecy without no links to evidence and you’re doing exactly that, just like OP.

    Anti Commercial-AI license