Are return arguments allowed in anonymous functions?


#1

code: (; Integer x) [x: 100]

error: ERROR: The identifier 'x' does not exist in the current scope.


#2

No - return arguments are not currently supported by closures.

They should probably give an error or warning.

Closures use a different mechanism than regular named routines and so return argument support is not trivial to add.

I was debating whether they would be useful to closures - I’m leaning towards, yes they would be useful.

Would they be useful to you?


#3

Yes they would :smiley: