Re: Naming Scala Operators

Posted by Aljoscha Krettek on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Naming-Scala-Operators-tp7p13.html

For a start, we could add the name() method and then later on set the user function code as the default name.


On Mon, Aug 4, 2014 at 2:10 PM, Stephan Ewen <[hidden email]> wrote:
We also thought at some point in time to use the textual representation of the lambda / function name for the name.

Through the Macros, we should have access to the AST and shoul dbe able to call "toString()" on it.

For example, teh name could then be:
  - Lambda:  (a: Int, b: Int) => a + b 
  - Referencing a function: "computeSum"