|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] This looks wrong |
Date: | Thu, 07 Aug 2014 16:12:40 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi,
my point is that there should be no difference between lambdas and defined functions. The reason that the left argument is ignored is that dyadic functions can be called monadically (the presence of the left argument can be checked with ⎕NC but it does not have to be checked.) But even in this case lambdas and defined functions behave in the the same way. What you are arguing for is that lambdas and defined functions shall behave differently in the niladic case. This maybe convenient at times but would increase the complexity of the syntax and could come as a surprise for many others /// Jürgen On 08/07/2014 03:58 PM, Jay Foad wrote: Right. Even in GNU APL monadic lambdas consume and ignore any left argument you give them, so you could argue that it's consistent for niladic lambdas to consume and ignore both arguments. Jay. On 7 August 2014 14:53, Elias Mårtenson <address@hidden> wrote:And, one could argue that knowing that lambdas are always variadic is quite consistent in itself. |
[Prev in Thread] | Current Thread | [Next in Thread] |