Yet another question for Moser/Dweck: does the almost-immediate negative response to making mistakes diminish if the subject is in a state of flow?
From personal experience, a state of flow while performing an intellectually engaging activity diminishes any and all negative feelings I may have. Positive and calm feelings remain, but when I encounter an obstacle or an error, I simply adapt to it like water flowing down a mountain.
I suspect that Moser/Dweck would find that programmers in a state of flow encountering a compile/runtime exception would exhibit significantly lower amplitude signal associated with immediate negative response.