• @[email protected]
    link
    fedilink
    1203 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";
    
    • @[email protected]
      link
      fedilink
      English
      163 days ago

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

      • @[email protected]
        link
        fedilink
        183 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