Re: p:count

/ Innovimax SARL <innovimax@gmail.com> was heard to say:
| As it stand p:count raise a lot of question :
|
| * p:count is hard to stream (it may imply you to buffer the whole
| sequence)

You don't have to buffer the stream, just read it. It's true that you
don't get an answer until you have read the whole stream, of course.

| * as a component answering specific result, if you need it, you have
| to get it from result

We have other steps that produce answers this way, it doesn't seem too
large a burden.

| Since we are adding a lot of function those time, isn't it simpler and
| consistent to have a function for that ?

We could, but it would be a lot more difficult to implement that way.
You really *would* have to buffer the whole input stream. As a step,
it's clearly a "heavyweight" operation that destroys (discards) its
input. As a function, I think users would imagine that it's a lot more
lightweight.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | You look wise. Pray correct that
http://nwalsh.com/            | error.--Charles Lamb

Received on Wednesday, 23 May 2007 11:25:53 UTC