lua-users home
lua-l archive

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

Hi Phillip,

On 25/04/2013, at 10:02 AM, Philipp Janda <> wrote:

> Hello fellow Lua users!
> Do you like Python's docstrings or their Lua equivalent[1]?
> Do you want your Lua function definitions to look like this ...
> ... to get type checking for function arguments and/or return values?


[1] does a similar argument-checking thing.  It parses special LDoc comments (that LDoc now supports) and uses a hook, rather than a decorator (hooks are unfortunately very slow, but at least optional).  Comment syntax is inspired by [2], which is also an argument checker, and there was a conversation about argument checking last year [3]