[plt-scheme] A data point on 'match' in intro programming: +++!

From: Eli Barzilay (eli at barzilay.org)
Date: Tue Jul 7 14:23:58 EDT 2009

On Jul  7, John Clements wrote:
> On Jul 7, 2009, at 9:26 AM, John Clements wrote:
> > That's the traditional approach (IIUC), and it may well lead to
> > better understanding.
> Just to be a bit more inflammatory: I'm not showing them 'cond';
> just 'match'.

I've ran into this in my class too.  When it gets to using a `Foo?',
it is definitely more convenient than

  (cases [(Foo _) #t] [else #f])

enough to the degree that most students discover that the predicate is
defined (even when I don't tell them about it).

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the users mailing list.