LQX Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 9 months ago

I love new features

lemmy.zip

message-square
13
link
fedilink
6

I love new features

lemmy.zip

Maven (famous)@lemmy.zip to Programmer Humor@programming.dev · 9 months ago
message-square
13
link
fedilink
alert-triangle
You must log in or # to comment.
  • Flipper@feddit.org
    link
    fedilink
    arrow-up
    3
    ·
    9 months ago

    I’m not sure if this is serious or not and that scares me.

  • hue2hri19@lemmy.sdf.org
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    deleted by creator

  • Hirom@beehaw.org
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    Rest of the world: We’re deprecating C++ due to lack of memory safety. Please consider doing something for safety.

    C++ commite: Here’s a new convenient operator to make it easier to do a potentially unsafe, multi-level pointer dereference.

  • deadbeef79000@lemmy.nz
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    Violates the Law of Demeter

  • merthyr1831@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

    I pray for this to be real because it’s the perfect syntactic sugar for C++. The kind that you’d think makes sense if you didn’t have to write C++ for anything more complex than a high school project.

    • mindbleach@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      Right? Every C++ feature needs to be lightly cursed.

  • mariusafa@lemmy.sdf.org
    link
    fedilink
    arrow-up
    0
    ·
    9 months ago

    C++26: remove C++

    • WhyJiffie@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago

      C++26: The Rust Book

  • bleistift2@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 months ago

    Why do you even have pointers to pointers?

    • BradleyUffner@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago

      Pointers just point to memory addresses, and because pointers are stored in memory addresses, it just kind of naturally falls out that way.

    • mindbleach@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      Because pointers are real.

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 months ago

    I honestly don’t know why they even have -> instead of just a dot like everyone else. The compiler knows whether it’s a record, object, pointer, or any level of pointer to pointers.

    Why make the programmer do the donkey work?

    • gencha@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      9 months ago

      Operator overloading allows you to redefine what each operator does. It’s essential to achieve a truly fucked up code base

    • Morphit @feddit.uk
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      It’s important for objects that can be dereferenced. Smart pointers have methods that can be accessed with dot syntax like swap(). You can still dereference through a smart pointer using arrow syntax to access methods on the referenced type since they overload the operator->() method.

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.34K users / day
  • 5.29K users / week
  • 9.35K users / month
  • 19.7K users / 6 months
  • 1 local subscriber
  • 26.7K subscribers
  • 1.21K Posts
  • 30.3K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org