Re: Why do users need FileHandles?

2004-07-19 Thread Dave Whipp
"Rod Adams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Case 1: > So I wanted to do a read/write scan, so I create my TextFile, start > reading in data, so the file is opened for reading. Then, I come to the > part where I want to update something, so I do a write command. Suddenl

Re: Why do users need FileHandles?

2004-07-19 Thread Rod Adams
Dave Whipp wrote: Under the hood, I don't really care, as long as it works (and is sufficiently efficient). There are obvious implementations that might be a bit inefficient on the first iteration (e.g. close and reopen). Quite frankly, the number of times I open unstructured files in rd/wr mode in

Re: Why do users need FileHandles?

2004-07-19 Thread Austin Hastings
--- Rod Adams <[EMAIL PROTECTED]> wrote: > Dave Whipp wrote: > > > > > Your case 2 is easy: "my Str $passwds is File("/etc/passwd") is > > const". With that, we might even catch your error at compile > > time. > > > >>/file/open/ and we're back where we started. > > > > Except that we've lost a l

Re: Why do users need FileHandles?

2004-07-19 Thread Rod Adams
Austin Hastings wrote: --- Rod Adams <[EMAIL PROTECTED]> wrote: I think part of the "mental jam" (at least with me), is that the read/write, exclusive, etc, are very critical to the act of opening the file, not only an after the fact restriction on what I can do later. But why? I'd argue

Re: Why do users need FileHandles?

2004-07-19 Thread Larry Wall
On Mon, Jul 19, 2004 at 07:40:01PM -0500, Rod Adams wrote: : TMTOWTDI can apply here, I believe. You give me my way, I'll give you : yours. Leave me open with all my parameters, and you can have your list : of file abstraction classes. I could see having those classes part of : core, if there's

Re: push with lazy lists

2004-07-19 Thread Jonadab the Unsightly One
"Ph. Marek" <[EMAIL PROTECTED]> writes: >> This is obviously some new definition of Inf of which I was not >> previously aware. > Well, after reading my sentence one more, I see what may have caused > some troubles. Inf is not in N; but *in my understanding* it fits > naturally as an extension t

Re: push with lazy lists

2004-07-19 Thread Larry Wall
On Mon, Jul 19, 2004 at 09:55:14PM -0400, Jonadab the Unsightly One wrote: : It is possible to construct a group that includes infinities, but NI : isn't it, and for Perl purposes it doesn't seem necessary. Though if someone wants to hack surreals into 6.1, that'd be cool. :-) Larry