• DacoTaco
    link
    fedilink
    125 days ago

    That sounds odd. That also means that a mapper, command, service,… can never return a class object or entity. Most of the programming world is based on oop o.O
    Keep in mind im not talking about the usage of pointers, but reference typed variables.

    • @ProgrammingSocks@pawb.social
      link
      fedilink
      1
      edit-2
      25 days ago

      Oh sure, I’m still learning so I thought you meant references as in pointers like in C++. But also, Rust isn’t a strictly object oriented language either. It shares a lot of similar features, but they aren’t all the typical way you’d do things in an OOP language. You should check out the chapter of the Rust book for ownership.