Skip to content

Should I use g-type when a constant variable may *occasionally* be altered #1506

Answered by FrankMittelbach
atxy-blip asked this question in Q&A
Discussion options

You must be logged in to vote

The idea of "c" is for constants that are really constants, i.e., where changes would result in incorrect code execution and not for something that is usually unchanged but can be changed. What can be changed and may be changed even if that happens only seldom is a variable in our model and there you have the distinction between global variables and local ones. Tracking anything else is something we think is not going to be helpful and it would be a difficult judgement call to identify what "seldom" means: it might mean never in most documents but often in a few documents or it might be changed in many but only in the preamble (usually) but ... Basically it would not be a consistent system.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by atxy-blip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants