[Resending because a company name change meant that I no longer appeared to
be a subscriber to the list, Derek saw it anyway.]

On Mon, 25 Jun 2001 22:14:31 +0000, Derek M Jones <[EMAIL PROTECTED]>
wrote:


> So my question is about decision strategies in selecting which
> programming construct to use.  Does anybody know of any papers
> on the subject?  I cannot find any.

Nope... But a couple more factors affecting the decision of individual
programmers might be things like:

(1) Do the switch cases fall through? Makes them clumsier to use.

(2) Can switch statements switch on arbitrary data. Makes them applicable
in more cases. (Pun intended unfortunately. :-j)

Eg in some languages (Dylan in this case) one can write:

select ( x by string= )
  "foo" => do-this();
  "bar" => do-that();
  "quux" => do-the-other();
end select;

__Jason

- Automatic footer for [EMAIL PROTECTED] ----------------------------------
To unsubscribe from this list, mail [EMAIL PROTECTED]  unsubscribe discuss
To join the announcements list, mail [EMAIL PROTECTED] subscribe announce
To receive a help file, mail [EMAIL PROTECTED]         help
This list is archived at http://www.mail-archive.com/discuss%40ppig.org/
If you have any problems or questions, please mail [EMAIL PROTECTED]

Reply via email to