3 ms·
foo := someDefaultValue if someCondition { foo := someMoreSpecificValue } Whoops, accidentally created a fresh, unused variable in the nested s
by ben0x539 5y ago
foo := someDefaultValue
if someCondition {
foo := someMoreSpecificValue
}
Whoops, accidentally created a fresh, unused variable in the nested scope instead of changing the value of the original variable.
I do that frighteningly often.