Simpler take on builder pattern and context functions

It is not a new discussion. Here is my latest totals: Literal Abstractions - #7 by AMatveev
Also,I can say I do not understand statements which say that there are no problems it is ok and scala has all it needs.

I think the main power of OOP is the scope management:

And currently the only way to compose scopes is to create object and classes:

Is the anonymous object is the right choose for scope management. It seems the less evil in some cases for me.
So it is quite difficult choice for me whether I should:

  • Use imports

    It leads to boilerplate code

  • Use global imports

    It has low coupling

  • Use inheritance

    It is quite heavy

I think existence of such choice it is quite bad by itself. And It indicates that the task has no good decision.