Have to add that we work exclusively in strongly-typed languages. Kinda want to see how it plays out, but I can’t help but argue with him, so I think I’ll just go.

  • Nalivai@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    7 hours ago

    I worked as a subcontractor with a lead architect that used casting to void * as an only method of sending data. Argument to a function? Void *. Return value? Void *. Multithread pipe? Cast to a void *, no big deal. 80% of my job was investigating segfaults. 20% was heavy drinking to prevent suicidal thoughts.

    • ulterno@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 hours ago

      I do mainly C and C++ and for a while, I had to check out some JS code…
      I wouldn’t want to take your place.

      The only case I remember using a void* in is when passing a function as an argument for a callback, to an RTC peripheral. Even then, the function was returning a void.