Allow eta-expansion for creator applications #17836
                  
                    
                      neko-kai
                    
                  
                
                  started this conversation in
                Feature Requests
              
            Replies: 0 comments 3 replies
-
| 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. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| 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. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| now a feature request | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
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 inhttps://contributors.scala-lang.org/t/let-constructors-to-be-considered-as-functions/3798)
Beta Was this translation helpful? Give feedback.
All reactions