[Top][All Lists]

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

Re: [Bug-apl] Local variables in lambdas

From: Peter Teeson
Subject: Re: [Bug-apl] Local variables in lambdas
Date: Sun, 14 Aug 2016 22:03:52 -0400

> On Aug 14, 2016, at 8:16 PM, Louis de Forcrand <address@hidden> wrote:
> Yes, the first seems more appropriate and readable. However, I would argue 
> that the variables
> in that list should be the ones to be made global; for me it is easier to 
> forget that an argument is
> global rather than forget that it is local.
With respect I disagree. They should be local in the same way they are in Del 
function defn.

> In addition, I believe that this would be more compatible with other APLs; 
> NARS and Dyalog,
> which are the two I have on hand, both treat all lambda variables as local. 
> However this could
> break compatibility with older GNU APL lambdas.
If it does do so then give fair warning in a release note. 

> In any case, just being able to choose wether a variable is local or global 
> would be great.
If such a way is provided then I would say that the responsibility to remain 
compatible rests with the  WS author.
Knowing the APL syntax rules is an example of familiarity NOT breeding contempt 
and vice versa ;-}

It’s confusing enough with the lambdas which I almost never use anyway for 
But that’s my weakness.



reply via email to

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