• Re: Lengthy numbers

    From Stefan Ram@3:633/280.2 to All on Tue Dec 24 23:26:26 2024
    Paul Rubin <no.email@nospam.invalid> wrote or quoted:
    ram@zedat.fu-berlin.de (Stefan Ram) writes:
    So in theory, this would crank out an infinite list that looks like
    [0, 0, 0, 0, ...]. In the real world, though, if you try to print or
    use this list, your program will probably freeze up faster than the
    405 at rush hour.
    The freeze-up happens as soon as you create the list.

    I'm stoked you caught that! You hit the nail on the head -
    that resource-hogging calculation goes down when the expression's
    evaluated. No need to "print or use this list" to see it happen.



    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: Stefan Ram (3:633/280.2@fidonet)