[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SRFI 121: Generators

This page is part of the web mail archives of SRFI 121 from before July 7th, 2015. The new archives for SRFI 121 contain all messages, not just those from before July 7th, 2015.





On 02/07/2015 04:31 PM, John Cowan wrote:
Per Bothner scripsit:
So I think this API should go on the back-burner, and we should instead
focus on a looping API - keeping generators as part of the latter.

Writing up foof-loop would be very useful.

I have two problems with foof-loop:

(1) It's conceptually rather complex, trying to be all-singing-all-dancing.
I haven't yet fully groked it.  (However, that can be ok, as long as
the simple and common use cases are easy to read and write.)

(2) It's a bit verbose, especially for simple things:

  (loop ((for element (in-list list))) ...)

compared to Racket:

  (for ((element list)) ...)
or:
  (for ((element (in-list list))) ...)
--
	--Per Bothner
per@xxxxxxxxxxx   http://per.bothner.com/