[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release)
- From: steve donovan <steve.j.donovan@...>
- Date: Sun, 3 May 2009 10:20:55 +0200
On Sat, May 2, 2009 at 7:50 PM, David Manura <dm.lua@math2.org> wrote:
> Caching of the first function goes against dynamic binding.
Yes, tho this is one of those performance trade-offs. I can't off-hand
think of a transparent notation to control this.
> It would be nice to be able to switch between a sequence and table
> implementation merely by switching the implementation of S (as memory
> and performance requirements change).
Totally. A sequence chain would typically end with :copy(), and then
we continue the chain using a table adapter.
> The method chaining can also be made to have the semantics of Forth
> (the input to each filter being the previous stack).
There's promise in this idea - Forth has been on my mind recently,
although my experiences with it were similar to APL (easy to write,
hard to read later)
> This would also allow non-alphanumeric method names:
>
> z = N(x):['2 * x^y'](n):['x + 1/x']()()
Especially if there was implied mapping on sequences/tables
steve d.
- References:
- Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), Mark Hamburg
- Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), David Manura
- Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), David Manura
- Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), Mark Hamburg
- Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), steve donovan
- Re: Injecting names & method chaining (was Re: [ANN] Penlight Libraries, First release), David Manura