On Monday, November 18, 2002, at 06:51  PM, Damian Conway wrote:

	for <$fh> {...}    # Build and then iterate a lazy array (the elements
			   # of which call back to the filehandle's input
			   # retrieval coroutine)

	for <$iter> {...}  # Build and then iterate a lazy array (the elements
			   # of which call back to the iterator's coroutine)

	for fibs() {...}   # Loop once, setting $_ to the iterator object
			   # that was returned by C<fibs>

	for <fibs()> {...} # Build and then iterate a lazy array (the elements
			   # of which call back to the coroutine of the
			   # iterator returned by C<fibs>
How will while behave?

	while <$fh> {...}    # Iterate until $fh.readline returns EOF?

	while <$iter> {...}  # Iterate until $iter.each returns false?

	while fibs() {...}   # Infinite loop -- fibs() returns an
                         # iterator every time?

	while <fibs()> {...} # I'm afraid to ask!

Best,

David

--
David Wheeler                                     AIM: dwTheory
[EMAIL PROTECTED]                                 ICQ: 15726394
http://david.wheeler.net/                      Yahoo!: dew7e
                                               Jabber: [EMAIL PROTECTED]

Reply via email to