Thank you for the suggestion Richard - this will take some time to explore.
To answer your question, it's because we will use this in a context where students will get one submission and won't see the test results. In this context, it's brittleness I'm trying to avoid. It is, as I say, not a syntax error and does not prevent code from compiling.
To answer your question, it's because we will use this in a context where students will get one submission and won't see the test results. In this context, it's brittleness I'm trying to avoid. It is, as I say, not a syntax error and does not prevent code from compiling.