[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: weird behaviour of table.sort
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 28 Jun 2010 15:11:34 -0300
> If Lua knows that my comparison function is flawed (and it most
> obviously does), it should tell me just that, instead of pestering my
> poor function with bogus arguments just to see what happens.
Why "it most obviously does"? For Lua to know that the comparison
function is flawed it needs extra checks in the code, so we must choose
between performance and better error messages.
-- Roberto