Perhaps this belongs on stackoverflow, but since it could have some applicability to non-tech contexts, thought I'd post here.
Is there a word that means "make something that is variable constant"?
For example, in programming, I might have a variable
queueSize that could be set to different values for different queues. Later I decide to make this a fixed (constant) value for all queues. What is a word to describe this conversion?
A real-world (non-programming) example is converting from a variable tax-rate to a flat (constant) tax-rate. I proposed below that, in light of this example, the word
flatten could be used to answer my question. However, this word does not conventionally mean "to make constant", and has other meanings in the context of several programming languages.
To be clear, I'm not looking for a word/expression the means changing a variable from one type to another (casting). Rather, I mean keeping the type the same, but changing a field from a variable to a constant value.