• killingspark@feddit.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        Nah, tail recursion optimization can just reuse the same stack frame again and again. It’s going to loop until it wraps around what ever integer width it has and then tells you if the biggest integer is even or odd. Or, if it’s nice, it’s going to complain about the wrap around