|
Hi, thank you all for your comments. It seems like the winner is this syntax (example): {⍺+⍵;C;D;E} The proposal to replace { } by [ ] would create an ambiguous syntax: ⍺←⍵←1 (1 2 3) [⍺+⍵] 4 2 4 (1 2 3) {⍺+⍵} 4 5 6 7 and changing to something else would at least affect existing workspaces. To declare the global variables instead of the local ones would create an unnecessary incompatibility between lambdas and proper defined functions. It would also cause problems in cases like this: { ⍎⍵,'←0';C;D} ¨ 'ABCD' because then A and B would be local and C and D global, but the lambda cannot know its local variables at the point in time where it needs to push its local variables. /// Jürgen |
- [Bug-apl] Local variables in lambdas Juergen Sauermann
- Re: [Bug-apl] Local variables in lambdas Louis Chretien
- Re: [Bug-apl] Local variables in lambdas Christian Robert
- Re: [Bug-apl] Local variables in lambdas Louis de Forcrand
- Re: [Bug-apl] Local variables in lambdas Peter Teeson
- Re: [Bug-apl] Local variables in lambdas Grant Rettke
- [Bug-apl] Local variables in lambdas Juergen Sauermann
- Re: [Bug-apl] Local variables in lambdas Juergen Sauermann
