bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] Suggestions needed: Editing of named lambdas


From: Elias Mårtenson
Subject: [Bug-apl] Suggestions needed: Editing of named lambdas
Date: Thu, 6 Mar 2014 10:53:12 +0800

The Emacs mode allows the user to edit an existing function by pressing C-c C-f, or typing  followed by the name of the function. This opens up the function editor in a separate window.

However, when the user creates a function using the dfn notation:

avg ← {(+/⍵)÷⍴⍵}

And then tried to edit it using ∇avg, the Emacs mode will run the equivalent of ⎕CR 'avg' behind the scenes, and present the following in the function editor:

∇λ←avg ⍵   
λ←(+/⍵)÷⍴⍵

This will of course fail when the user tries to save the function.

First a question for Jürgen:

Can I rely on the fact that if the first character in a function definition is λ, does that guarantee that the function is a dfn? A consequence of this is, for example, that I am guaranteed that the function consists of only one statement.

So, I have a few options here and I would like people's input on it:
What solution do you think should be used? The current state is really not ideal.

Regards,
Elias

reply via email to

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