[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [suggestion] assert: accept functions as "message"-argument
- From: Wolfgang Pupp <wolfgang.pupp@...>
- Date: Mon, 14 Jan 2013 19:06:13 +0100
Luiz Henrique de Figueiredo wrote:
> See http://lua-users.org/lists/lua-l/2010-05/msg00494.html and its thread.
I do realize that this is simple to build on top of Lua 5.2, but my
point is that *every* little script that needs it will require some
boilerplate code/declaration to provide this (without a workaround
like this, asserts become a liability wherever concatenation is needed
to create a proper message).
Extending the builtin assert, on the other hand, would make all that
boilerplate code unnecessary while adding very little
complexity/LOC/lines of documentation to Lua itself (much like 5.2's
table.pack).
--Wolfgang