[plt-scheme] Re: I/O therefore no local
On Mar 3, 2010, at 12:55 AM, wooks wrote:
> Actual past Exam question
>
> a) Write X procedure recursively.
> b) What is a disadvantage of recursion
Many students (and teachers!) who first learned to program in an
imperative/sequential style have trouble understanding it, because
they try to think about all the levels of implementation at once
rather than focusing on the procedure's preconditions and
postconditions.
And, as Noel says, one should give the expected answer and then
explain why that answer isn't always a real disadvantage.
Stephen Bloch
sbloch at adelphi.edu