[Top][All Lists]

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

[Bug-apl] Local variables in lambdas

From: Juergen Sauermann
Subject: [Bug-apl] Local variables in lambdas
Date: Sun, 14 Aug 2016 21:50:23 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0


Thinking about lambdas once more I had an idea of a syntax for declaring local variables in
the lambda. In order to bring lambdas and proper functions closer together rather than separating
them more than necessary, we could use the same syntax as in proper defined functions: a list
of variable names separated by semicolons. A lambda with body ⍺+⍵ and local variables C, D,
and E would then be declared as:


One could also think of


But the first looks more appealing to me. Any opinions?

/// Jürgen

reply via email to

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