Fluent interface for setters
Issue #301
new
Let setters return this
instead of void
to allow fluent construction of objects.
Example grammar:
A ::= B C;
B;
C;
Example use of fluent API:
new A().setB(new B()).setC(new C())
Comments (3)
-
-
reporter - edited description
Yes, it was a typo. I have fixed it now. I hope :-)
-
- changed component to ast api
- Log in to comment
What does
setB(new B(), new D())
mean? Is the, new D()
part a typo?