Re: [racket-dev] More places questions

2011-09-30 Thread Kevin Tew
Yeah I think you are right. I'll commit a change. Kevin On 09/30/2011 03:17 PM, John Clements wrote: On Sep 30, 2011, at 5:28 AM, Sam Tobin-Hochstadt wrote: On Fri, Sep 30, 2011 at 12:26 AM, John Clements wrote: I'm guessing that calling place-channel-put with a descriptor pulls out the

Re: [racket-dev] More places questions

2011-09-30 Thread John Clements
On Sep 30, 2011, at 5:28 AM, Sam Tobin-Hochstadt wrote: > On Fri, Sep 30, 2011 at 12:26 AM, John Clements > wrote: >> I'm guessing that calling place-channel-put with a descriptor pulls out the >> associated channel... should the docs indicate this? > > The docs here: > http://pre.racket-lang

Re: [racket-dev] More places questions

2011-09-30 Thread John Clements
On Sep 30, 2011, at 6:31 AM, Matthew Flatt wrote: > At Fri, 30 Sep 2011 09:21:42 -0400, Eli Barzilay wrote: >> A few minutes ago, Kevin Tew wrote: >>> place-channel-put is not blocking. >> >> So "channel" in the name is not a good choice... > > We use "channel" for asynchronous channels, too, s

Re: [racket-dev] More places questions

2011-09-30 Thread Matthew Flatt
At Fri, 30 Sep 2011 09:21:42 -0400, Eli Barzilay wrote: > A few minutes ago, Kevin Tew wrote: > > place-channel-put is not blocking. > > So "channel" in the name is not a good choice... We use "channel" for asynchronous channels, too, such as `racket/asynch-channel'. Since all place channels are

Re: [racket-dev] More places questions

2011-09-30 Thread Eli Barzilay
A few minutes ago, Kevin Tew wrote: > place-channel-put is not blocking. So "channel" in the name is not a good choice... -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! _

Re: [racket-dev] More places questions

2011-09-30 Thread Kevin Tew
place-channel-put is not blocking. I'll add it to the docs. On 09/30/2011 06:28 AM, Sam Tobin-Hochstadt wrote: On Fri, Sep 30, 2011 at 12:26 AM, John Clements wrote: I'm guessing that calling place-channel-put with a descriptor pulls out the associated channel... should the docs indicate t

Re: [racket-dev] More places questions

2011-09-30 Thread Sam Tobin-Hochstadt
On Fri, Sep 30, 2011 at 12:26 AM, John Clements wrote: > I'm guessing that calling place-channel-put with a descriptor pulls out the > associated channel... should the docs indicate this? The docs here: http://pre.racket-lang.org/docs/html/reference/places.html?q=place#%28tech._place._descripto

[racket-dev] More places questions

2011-09-29 Thread John Clements
The example in the guide works fine: #lang racket (provide main) (define (any-double? l) (for/or ([i (in-list l)]) (for/or ([i2 (in-list l)]) (= i2 (* 2 i) (define (main) (define p (place ch (define l (place-channel-get ch)) (define l-double? (any-double? l)