One reason this approach is better suited for J than other languages is that 
saving state is more often than not an easy one liner in J, while more often 
than not one line per variable in cobol 2005s.  It explains the need for them 
to implement a magic yield keyword, to save a bit of typing.

----- Original Message ----
From: "Miller, Raul D" <[EMAIL PROTECTED]>
To: Programming forum <[email protected]>; Programming forum 
<[email protected]>
Sent: Saturday, October 28, 2006 5:07:55 PM
Subject: RE: [Jprogramming] Neat coroutine implementation

Oleg Kobchenko wrote:

> Also coroutine is more a syntactic sugar, not an

> implementation.

 

And, in J, it makes a lot of sense that coroutine

syntactic sugar be locale flavored.

 

Locales, after all, are J's syntactic and semantic

mechanism for associating persistent state with names.

 

-- 

Raul


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm




----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to