• MajorHavoc@programming.dev
    link
    fedilink
    arrow-up
    6
    arrow-down
    6
    ·
    edit-2
    4 months ago

    Yeah. The verdict is still out on whether having a deeply surly compiler will help me focus on iterating and understanding the client’s needs.

    I run Python CICD controls on main with at least the same level of prissiness (as Rust comes with), but at least Python knows how to shut up and let me prototype.

    I’m currently not convinced that Rust’s opinionated design hits a useable long term sweet spot.

    But I think if Rust adds a debug flag --fuck-off-i-need-to-try-something, it could genuinely become the next Python, and the world would be better for it.

    Edit: And if I just missed the --fuck-off-i-need-to-try-something Rust flag, someone point me at it, and I’ll gladly give Rust another run.

    • nick@campfyre.nickwebster.dev
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      4 months ago

      That flag exists, it’s called unsafe for if you need to tell the borrow checker to trust you or unwrap if you don’t want to deal with handling errors on most ADTs.

      You can always cast anything to an unmanaged pointer type and use it in unsafe code.