From: steeds at ccms.net (Mike Steed)
Date: Sun, 02 May 1999 21:45:10 -0500
Subject: while (a=b()) ...
References: <XFMail.990429164839.nathan@islanddata.com> <slrn7ii759.eoc.wtanksle@dolphin.openprojects.net> <dtj-0105991427210001@ip-44-219.tus.primenet.com>
Message-ID: <372D0DB6.6349@ccms.net>
X-UID: 1960                                                 

Derek T. Jones wrote:

> The solution where the test method and the result method of the object
> in the loop are separate is, I believe, the nicest.  But when the object
> you're working with doesn't provide that, then I vote for the "forever"
> loop.

Three cheers for separating the test and the result methods!  When the
object you're working with doesn't provide that, my vote is for wrapping
the object with an interface that *does* provide that.  Python makes
this especially easy to do. :-)

My $.02.

-Mike




