11

Dear rust,

I swear im not going to modify that string, i fucking swear on my life pinky promise, just plEASE LET ME USE IT WITHOUT HAVING TO CLONE.

Sincerely, a functional programmer

Comments
  • 4
    Just flag it with unsafe and wait for the issue flames 😌
  • 0
    ah J see you are forcing yourself to use Rust<<T[<T(T<<X>>]>>

    you think this wise after spending so much time with Scala and Ocaml??!
  • 0
    Not modifying it? Pass an immutable reference.

    Function signature needs to be fn x(y: &String) though.
  • 0
    @AleCx04 we use rust at work :/ but yeah i find the borrow checker really annoying
  • 0
    Don't functional programmers Love pure functions and immutable data?
  • 1
    @Wack we do and rust aint it chief
Add Comment