4 ms·
Why do you prefer using subscripts rather than simple ASCII numerals in variable names?
by alanbernstein 7y ago
Why do you prefer using subscripts rather than simple ASCII numerals in variable names?
- 3JPLW 7y agoIt's not a big thing, and obviously it's a matter of taste, but I find it improves readability slightly. It's most notable if I'm doing work based on literature with standard notations (e.g., α₀ instead of alpha_0), but it can also be really nice to help keep track of different states of the same value, e.g., loc₀ vs. locᵢ and locₖ inside loop(s) or with staggered indexing computations.