On 1 January 2013 20:33, Thijs Schreijer <
thijs@thijsschreijer.nl> wrote:
> The error function is defined as;
> error (message [, level])
>
> The assert function is defined as;
> assert (v [, message])
>
> Is there a specific reason the assert function doesn't have a 'level' argument that allows to throw the error up some levels? Eg. have assert defined as;
> assert (v [, message [, level]])
>
> Currently I use;
> if not v then error(message, level) end
>
> But I would prefer the shorter assert notation
>
> Thijs
>