Just a short (and propably stupid) question. Does anyone know a language which supports variable renaming within blocks as a preprocessor/compiler feature for readability. At some points I'd really wish to have the abillity to do something like
{
...
<type> accumulator;
//do something with accumulator
ren(accumulator --> somethingElse)
...
accumulator = whatever //compile time error
...
}
{
...
<type> accumulator;
//do something with accumulator
ren(accumulator --> somethingElse)
...
accumulator = whatever //compile time error
...
}