bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Extension proposal: ⍵⍵ to access outer lambda


From: Elias Mårtenson
Subject: Re: [Bug-apl] Extension proposal: ⍵⍵ to access outer lambda
Date: Fri, 11 Jul 2014 13:01:42 +0800

On 10 July 2014 08:03, Kacper Gutowski <address@hidden> wrote:

I think the main problem isn't the length of variable's name but the
fact that regular variable is neither lexically scoped nor localized.

This is exactly my concern.
 
Using ⍵⍵ might be confusing for Dyalog users where ⍺⍺ and ⍵⍵ are used
as functional arguments of dfn operators.  But since GNU APL uses ⍶
and ⍹ for those and it doesn't localize variables in dfns, using
repeated ⍺/⍵ for nested arguments doesn't sound that bad.

Yes, this is precisely my opinion. It also translates well to the outer-outer arguments like ⍵⍵⍵. One might also consider something like ⍶⍶ to refer to an outer function argument as well.

Regards,
Elias

reply via email to

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