[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Putting version information, description, copright into modules
- From: Peter Aronoff <telemachus@...>
- Date: Thu, 11 Feb 2016 19:15:37 -0500
Daurnimator <quae@daurnimator.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?
Discuss.
--
We have not been faced with the need to satisfy someone else's
requirements, and for this freedom we are grateful.
Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System