Made with KolourPaint and screenshots from Kate (with the GitHub theme).

  • lobut@lemmy.ca
    link
    fedilink
    arrow-up
    4
    ·
    19 hours ago

    I think you can do const thing = ... as constto lock down the mutation?

    • ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      10 hours ago

      So is let in some languages. In Rust, you have to constantly opt out from immutability with let mut, which makes writing more procedural code feel like you’re fighting with the compiler, and otherwise I don’t really see the rationale behind full functional coding. I only had a bug caused only once by unwanted mutation, the hardest part fixing it was to learn the proper use of my debugger tool.