[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Defensive Programming with Arrays (was Re: Speed of #t)
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 14 Dec 2010 07:33:00 +0200
On Mon, Dec 13, 2010 at 10:52 PM, Henk Boom <henk@henk.ca> wrote:
> I always differentiate between map and imap (analogous to pairs and
> ipairs). map functions can return nil, but imap functions should not.
That's a good general rule. I'm revising Penlight so I may make imap()
check for nil returns and regard them as an error.
steve d.