[MLton] Bug in LargeInt.scan
Wesley W. Terpstra
Mon, 15 Aug 2005 16:32:00 +0200
On Aug 15, 2005, at 4:11 PM, Henry Cejtin wrote:
> I really (religiously) feel that this is completely wrong. "0xga"
> is NOT an
> integer. If you want to know if something starts with an integer
> then use
> a reader. For Int.fromString, I want to know if I gave it an integer.
Ahh. Then I agree with you.
I meant that parsing "0xga" as (0, "xga") made sense for readers.
Having Int.fromString "0xga" = 0 is nasty, I agree.
> (Mind you, the whole standard basis library notion that negative
> can be indicated by ~ is also completely NUTS.
Yeah, I don't like that either.
While we're ranting and dreaming...
I wish overloading in SML was done like Haskel!