[plt-scheme] Do no evil

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon Mar 8 12:07:05 EST 2010

On Mon, Mar 8, 2010 at 3:31 PM, wooks . <wookiz at hotmail.com> wrote:
>> You could implement a
>> immutable swap (i.e. a copy) to show the students the mutation is not
>> fundamental.
>>
>
> but
> a) but would it further the objective of clarity
> b) is it relevant to their syllabus
> c) would they care?

I can safely answer "I don't know" to all the above :) But I think the
main point you started with was imperative vs functional style, in
which case I think Matthias has shown that normal functional style
(i.e. no do loop) can be very clear. At least I find his final bubble
sort very clear to read and your students may do so as well given it
doesn't require them to internalise any new syntax.

N.


Posted on the users mailing list.