>>107599690
>God damn, I didn't realise how much I hate it when languages don't have proper lexical scope and variable shadowing
Today I remembered once again that in C you can't do:
struct type *x = something();
if (...) {
struct type2 *x = (struct type2 *) x;
}
Because in C, x on the RHS refers to the x on the LHS, no the x in the outter scope.
This fucking sucks, you can do this in languages with non-retarded name resolution rules.