[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 1e50 == 1?
- From: Matthew Paul Del Buono <delbu9c1@...>
- Date: Wed, 23 Jan 2008 06:27:40 -0500 (EST)
>now I might have miscalculated it, but wouldn't the string
>("1+"):rep(1e50) need
>
>200000000000000000000000000000000000000000 Gigabyte RAM?
>
>
>Eike
I didn't bother to calculate, but wouldn't the argument be "so give an error, not assume the programmer was a moron"
He probably was a moron, but that's not an excuse to give him back an empty string :P Give him an error so he knows he's being a moron and hopefully will learn from it.
Or at least document in the manual that this is the behavior of string.rep.
-- Matthew P. Del Buono a.k.a. Shirik