[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Feature suggestion: multiple function arguments

From: Louis de Forcrand
Subject: Re: [Bug-apl] Feature suggestion: multiple function arguments
Date: Sat, 5 Mar 2016 16:28:28 +0100

That would be a great idea. However, it would indeed take not only quite a bit of
time to set up, but would also need constant checking to make sure the updates
in the main branch don’t conflict with additions.
While I just said that I believe the main branch should probably concentrate on
the standard, one of the things I’ve really fallen in love with in J and that is
completely missing in standard APL is tacit definition. Not only does it allow
inversible functions and idiom detection for optimisation, but it is just simply
so elegant:
mean ← +⌿ ÷ ≢


On 05 Mar 2016, at 16:19, Elias Mårtenson <address@hidden> wrote:

On 5 March 2016 at 23:09, Louis de Forcrand <address@hidden> wrote:
While talking about features to add, instead of introducing a new function header
style, IMHO a new local assignment function would be more useful.
For example, instead of typing
∇Z←X F Y;A;B;C
to declare local variables, instead one would simply type
∇Z←X F Y
and then assign variables A, B, and C using the local assignment arrow.
This would apply to the previously discussed header as:
∇multi a
(a1 a2 a3)⍅a

I have thought about creating an alternative branch where these things can be experimented with. Unfortunately I haven't had the time, and I also haven't thought of any extensions that are so incredibly cool that I absolutely have to out and implement them. :-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]