• force@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    8 months ago

    lol that’s not actually how rust is written, it was just a joke

    it’d really be written

    if x > y { x } else { y }
    
    • Cihta@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      Hah thanks for clarifying. I was joking too and it’s a shame I couldn’t post the results.

      Though I admit i don’t know anything about rust. I’m sure I’d like it better than the proprietary garbage i use now that just gets converted to ASM / PLC code in the end. But I can’t skip the middle man. I’m not gonna try but probably 30mins for me to “write” the above.

      Besides, how do you make money if I can code something in an hour as opposed to 2 days?

        • Cihta@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          8 months ago

          No no no you misunderstood me.

          I was being honest, I know nothing of rust. I have however used python in embedded systems with positive results. The product didn’t make it but for other reasons.

          Funny you mention java, that’s sorta what I’m stuck in but not like you think. Beyond the fact that it’s a bloated nightmare.

          I’m just a low-level programmer at heart but I have bills to pay. The rust stuff was all just a joke… i don’t know it but maybe i should. Thanks for the info.

          Saying anymore about what I do is just super embarrassing but i promise i meant no ill will. Excuse my frustration, I’m locked into a proprietary system i have no control over. You would laugh your ass off if you saw it. Anyway, i meant no offense, have a good night!