LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Frank Mittelbach <[log in to unmask]>
Mon, 8 Dec 2008 20:26:19 +0100
text/plain (19 lines)
Joseph Wright writes:
 > Will Robertson wrote:
 > > While we're discussing terminology, is there any overarching reason that
 > > global and local variables have their scope as a prefix \g_ or \l_ ? (My
 > > reason for asking being that I would slightly prefer something like
 > > \module_name_l_tlp or something thereabouts, but I'm not really fussed.)
 > My thinking was that \l_<module>... makes it easy to see a variable in a
 > load of \<module> functions.

precisely, it is a very good indicator within the code and also if you look
for a variable then there is a single place (l_ for local g_ for global) in
the index to look, very useful in my experience. I wouldn't want to miss that.

it makes variables nicely separated from functions in both places