Literal Abstractions

if I understand your example correctly, there is similar proposal:

The main drawback of such aproach is:

Dotty allows to implement “it pattern”.

Nevertheless I am sure that such such ability is very important for dsl especially for typeclasses because an extension has no sence with “it” prefix.

There are also many use cases for this feature.

2 Likes