[plt-scheme] Do no evil

From: wooks . (wookiz at hotmail.com)
Date: Mon Mar 8 15:22:12 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.
> 

Teaching them do syntax has become an objective of the exercise. It fits with the syllabus I am lumbered with.
Following your ringing endorsement I'll show Matthias's version as well (as well as learn from it myself).

 		 	   		  
_________________________________________________________________
Do you have a story that started on Hotmail? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100308/400238aa/attachment.html>

Posted on the users mailing list.