Re: RFC 23 (v3) Higher order functions

2000-08-29 Thread Chaim Frenkel
> "DC" == Damian Conway <[EMAIL PROTECTED]> writes: DC> It was simply attempting to explain why I choose to ignore what are (to DC> me, at least) trivial implementation issues, well documented in the DC> compiler literature. I choose to ignore them because I *have* to ignore DC> them or my br

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Larry Wall
Nathan Torkington writes: : The fact that other languages can implement it trivially doesn't mean : that Perl can. I'd like us to have realized what kind of internals : support is needed for a language feature (e.g., optree duping for : partially-evaluated subroutines) *before* speccing out the i

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Damian Conway
> So perhaps you should ask people to contribute implementation notes > sections to your RFCs rather than entire RFCs? And no sense in requiring > that for the initial version, though a solicitation in the text of the > RFC itself might hasten their appearance. I thought that was what

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Damian Conway
> > If there are any RFC's which you have in mind and could send me your > > notes on, I'd be *more* than happy to help out. > > > This is actually an excellent idea, because then Damian can > concentrate on coming up with the key ideas. However, rather than > having to shuffle n

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Nathan Torkington
Damian Conway writes: > $add = ^a + ^b; > # a thousand lines later... > $incr = $add->(1); > # a thousand lines later... > $x = $incr->($x); I picture $add->(1) cloning add's optree, filling in the 1 where appropriate, then returning a reference to the new (cloned) o

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Nathan Torkington
Damian Conway writes: > me, at least) trivial implementation issues, well documented in the > compiler literature. I choose to ignore them because I *have* to ignore > them or my brain is going to melt. The brief explanations you gave ("here's how it would be translated", and "walk each statement

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Steve Fink
Damian Conway wrote: > > It was simply attempting to explain why I choose to ignore what are (to > me, at least) trivial implementation issues, well documented in the > compiler literature. I choose to ignore them because I *have* to ignore > them or my brain is going to melt. So perhaps you sho

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Jeremy Howard
Nathan Wiger wrote: > Damian Conway wrote: > > > > You're error is in assuming I have time *now*. > > > > With 30+ RFCs still to write, I've been seriously contemplating > > just abandoning the Perl 6 effort, because added to the demands > > of my full-time job, my O'Reilly and other tutorial comm

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Damian Conway
[Apologies for following-up my own post] I wrote: > You're error is in assuming I have time *now*. > > With 30+ RFCs still to write, I've been seriously contemplating > just abandoning the Perl 6 effort, because added to the demands > of my full-time job, my O'Reilly and other tu

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Damian Conway
Glenn Linderman wrote: > > If a curried subroutine is truly generated because of seeing an > expression containing placeholders, then that expression contains some > finite number of placeholders. Each placeholder turns into a parameter > of the generated subroutine. The generated subroutine has,

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Peter Buckingham
Glenn Linderman wrote: > > Nathan, thanks for zeroing in on this paragraph from RFC 23. It raises a > question in my mind about the meaning of the RFC, and whether the paragraph is > even necessary, which could answer your question about implementation. > > If a curried subroutine is truly gene

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Jonathan Scott Duff
On Sat, Aug 19, 2000 at 06:35:55AM +1000, Damian Conway wrote: > You're error is in assuming I have time *now*. > > With 30+ RFCs still to write, I've been seriously contemplating > just abandoning the Perl 6 effort, because added to the demands > of my full-time job, my O'Reilly and other tutori

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Nathan Wiger
Damian Conway wrote: > > You're error is in assuming I have time *now*. > > With 30+ RFCs still to write, I've been seriously contemplating > just abandoning the Perl 6 effort, because added to the demands > of my full-time job, my O'Reilly and other tutorial commitments, > my modules, and my poo

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Damian Conway
> > The subroutines generated by a placeholder are not exactly like > > the equivalent subroutines shown above. If they are called with > > fewer than the required number of arguments, they return another > > higher order function, which now has the specified arguments > > bound as

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Glenn Linderman
Nathan, thanks for zeroing in on this paragraph from RFC 23. It raises a question in my mind about the meaning of the RFC, and whether the paragraph is even necessary, which could answer your question about implementation. If a curried subroutine is truly generated because of seeing an expressio

Re: RFC 23 (v3) Higher order functions

2000-08-18 Thread Nathan Torkington
Perl6 RFC Librarian writes: > =head2 Re-currying deferred expressions > > The subroutines generated by a placeholder are not exactly like the > equivalent subroutines shown above. If they are called with fewer than the > required number of arguments, they return another higher order function, > w