• shape_warrior_t@programming.dev
    link
    fedilink
    English
    arrow-up
    19
    ·
    2 days ago

    Even regular Rust code is more “exciting” than Python in this regard, since you have a choice between self, &self, and &mut self. And occasionally mut self, &'a self, and even self: Box<Self>. All of which offer different semantics depending on what exactly you’re trying to do.

    • dejected_warp_core@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      2 days ago

      I’ll add that 100% of the above is understood by the compiler. Unlike Python or JavaScript where you don’t know how bad you have it until the program is already running.

      • Lightfire228@pawb.social
        link
        fedilink
        arrow-up
        8
        ·
        1 day ago

        At least python has a decent runtime typing system

        JS’s type system feels like what you’d get by giving a monkey access to unlimited cocaine and a computer