[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Putting version information, description, copright into modules
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 12 Feb 2016 10:06:21 -0200
> Daurnimator <email@example.com> wrote:
> > The other thing to note is that fields starting with '_' are customarily
> > reserved. From http://www.lua.org/manual/5.3/manual.html#3.1:
> > "As a convention, programs should avoid creating names that start with an
> > underscore followed by one or more uppercase letters (such as _VERSION)."
> This has come up more than once in this thread, so here's a question:
> Do people think that variables of this kind are a bad idea even
> when they're namespaced under the exported module's table?
> That is, I use names *exactly* like _VERSION, but not in the
> toplevel environment. Does this still violate the spirit of the
> manual's injunction or is it fine?
The manual says "names", not "variables".