[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua's opportunity
- From: Mildred <ml.mildred593@...>
- Date: Wed, 27 Dec 2006 14:27:39 +0100
Le mer 27/12/2006 à 01:37 Norman Ramsey à écrit:
> Le mer 27/12/2006 à 00:18 Jimmie Houchin à écrit:
> > I think it would be wonderful if the
> > community would select and bless certain libraries as standard.
> > Make them available for the various platforms compiled and ready
> > to use. ...
> > What do the long time Lua users think?
I do not consider myself as a long time lua user (I'm here since summer
2005) but I would really apreciate having such blessed libraries.
Because when you want to use a C library, often you don't really have
the choice and you have to write yourself the glue code. In fact,
it's because of lua that I really learned programming in C :)
> (Also, it would help to have some sort of 'luadoc' to make libraries
I agree on this documentation part. And it does not have to be written
in the language (as in python and docstrings). For example in some of
my modules, I have a help() function that return a help string of the
function you pass as parameter.
For example in my shell module (allows you to inspect lua tables with
metatables ... showing them as a filesystem and giving you some on the
unix commands) there is a help function :
> return require("shell"):help("exit")
Exit the shell
Mildred <xmpp:firstname.lastname@example.org> <http://mildred632.free.fr/>
Clef GPG : <hkp://pgp.mit.edu> ou <http://mildred632.free.fr/gpg_key>
Fingerprint : 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]