From: John English <je@brighton.ac.uk>
Subject: Re: HELP: renames and enum values
Date: 2000/04/14
Date: 2000-04-14T11:32:51+00:00 [thread overview]
Message-ID: <38F70201.A8A9BF3D@brighton.ac.uk> (raw)
In-Reply-To: 8d56ti$3sd$1@nnrp1.deja.com
Robert Dewar wrote:
> In article <38F5D6F9.5B8892F2@bton.ac.uk>,
> John English <je@bton.ac.uk> wrote:
> > function Enum_Literal return Enum_Type renames
> Other_Enum_Literal;
> >
> > Now, that *really* confuses them, and none of them would ever
> be
> > able to guess it without being told!
>
> I have a different view of learning languages, I do not expect
> my students to "guess" anything about a language, I expect them
> to learn rules and apply them.
>
> I agree that this rule might be non-intuitive if the basic
> semantics of enumeration literals has not been presented in
> a clear manner.
Well, this is not quite what I meant; *if* they had to guess it,
they wouldn't in a million years. I don't expect my students to
guess things either, and I do indeed explain it, but in my
experience many students find it completely unintuitive that
the literals of a type are actually functions, and it takes a
bit of frowning and head-scratching before they finally write
it off as "hey, it's crazy, but you gotta live with it".
-----------------------------------------------------------------
John English | mailto:je@brighton.ac.uk
Senior Lecturer | http://www.comp.it.bton.ac.uk/je
Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS **
University of Brighton | -- see http://burks.bton.ac.uk
-----------------------------------------------------------------
next prev parent reply other threads:[~2000-04-14 0:00 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <38ECE0EB.4BD4A53E@mindspring.com>
2000-04-07 0:00 ` HELP: renames and enum values Samuel T. Harris
2000-04-07 0:00 ` Al Johnston
2000-04-09 0:00 ` Robert Dewar
2000-04-09 0:00 ` dale
2000-04-09 0:00 ` Robert Dewar
2000-04-10 0:00 ` Dale Stanbrough
2000-04-13 0:00 ` John English
2000-04-13 0:00 ` Samuel T. Harris
2000-04-13 0:00 ` Robert Dewar
2000-04-14 0:00 ` John English [this message]
2000-04-13 0:00 ` Ted Dennison
2000-04-13 0:00 ` Robert A Duff
2000-04-13 0:00 ` Samuel T. Harris
2000-04-14 0:00 ` Tucker Taft
2000-04-10 0:00 ` Samuel T. Harris
2000-04-11 0:00 ` Al Johnston
2000-04-10 0:00 ` Samuel T. Harris
2000-04-11 0:00 ` Al Johnston
2000-04-11 0:00 ` Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox