Skip to content

Improve stability of lambda implementation method name #43

Closed
@retronym

Description

@retronym

We ought to include the enclosing method name in the method name.

Starting with:

class C {
  var a = 5
  def foo() {
    val f1 = () => a.toString
    val f2 = (x: Int) => x * a
    val f3 = (z: String) => s"$z$a$z"
  }
}

To:

class C {
  var a = 5
  def bar() {
     () => ()
  }
  def foo() {
    val f1 = () => a.toString
    val f2 = (x: Int) => x * a
    val f3 = (z: String) => s"$z$a$z"
  }
}

Ought to be a serialization compatible change.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions