Closed neko-kai closed 1 year ago
That would be a language enhancement and a quite complicated one. I think this should go to feature suggestions, and ideally be accompanied with a PR.
Could anyone please transfer this issue to https://github.com/lampepfl/dotty-feature-requests/ in that case? If I open a new issue there, it would be identical to this one or refer to it, so it would probably better to avoid duplication.
now a feature request
Compiler version
3.0.1
Minimized code
Output
Expectation
Expected implicit apply to eta-expand, which would allow using a class's constructor as a function without having to supply (and later change) a placeholder for each constructor parameter, as in
Pair(_, _)
(prior discussion/motivation in https://contributors.scala-lang.org/t/let-constructors-to-be-considered-as-functions/3798)