[Top][All Lists]

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

Re: [Bug-apl] Local variables in lambdas

From: Louis Chretien
Subject: Re: [Bug-apl] Local variables in lambdas
Date: Sun, 14 Aug 2016 16:48:31 -0400

I agree that the first one is more like the usual function definition.

Like in UI design’s “principle of least astonishment”, the more familiar a thing looks, the better.


On Aug 14, 2016, at 15:50, Juergen Sauermann <address@hidden> wrote:


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

Louis Chrétien

reply via email to

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