• RustyNova@lemmy.world
    link
    fedilink
    arrow-up
    124
    ·
    3 days ago

    They didn’t even have mentioned the comments in the source code

    /// Mommy intentionally lets her little ones call her recursively, since they might want to hear more from her~
    ///
    /// If they call her a thousand times in a row, though, something has probably gone wrong 😏
    const RECURSION_LIMIT: u8 = 100;
    /// This name is intentionally not user-configurable. Mommy can't let the little ones make *too*
    /// much of a mess~
    const RECURSION_LIMIT_VAR: &str = "CARGO_MOMMY_RECURSION_LIMIT";
    
    • jaybone@lemmy.zip
      link
      fedilink
      English
      arrow-up
      18
      arrow-down
      1
      ·
      3 days ago

      They set a limit on number of recursive calls? Good luck trying to sort or search anything.

      • RustyNova@lemmy.world
        link
        fedilink
        arrow-up
        22
        ·
        3 days ago

        Looking back at the code (Sigh), it’s to prevent setting the CARGO variable to cargo mommy, and causing an infinite loop. You can still do cargo mommy mommy if you like double praises