[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Suggestion: file:write() and other methods should return file
- From: Javier Guerra Giraldez <javier@...>
- Date: Sat, 2 Jul 2011 11:09:16 -0500
On Sat, Jul 2, 2011 at 10:11 AM, Mark Hamburg <mark@grubmah.com> wrote:
> io.open( 'foo', 'a+' ):write('fooo'):close():assert()
very interesting. i'd chose to have a single error class, that
returns self on _every_ function except :err(), that returns nil,error
and :assert() that fails
is that style common in any language/library you know?
--
Javier