lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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