lua-users home
lua-l archive

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


2014-08-28 8:58 GMT+02:00 Coroutines <coroutines@gmail.com>:
> On Wed, Aug 27, 2014 at 11:53 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>
>> Neutral: Some of IPython's convenience comes from Python
>> conventions we do not yet have in Lua, in particular its docstring.
>
> hmm.
>
> docstring = function (f, description) docstring_table[f] = description end
>
> debug.setmetatable(function () end, { __tostring = function (self)
> return rawstring(self), docstring_table[self] end }) -- or something
> fun...

Or less intrusively: 'luarocks install ihelp".

The point is that we don't have a generally accepted style of coding
Lua so that the documentation can be extracted from the source.
LDoc comes closest, but its sigils annoy me,