_ does not work in string interpolator #17699
                  
                    
                      scf37
                    
                  
                
                  started this conversation in
                Feature Requests
              
            Replies: 3 comments
-
| There's history here: scala/scala#2793 (comment) | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| Use case: Kotlin has very handy  It could be nice to have consistent  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| I agree it would be nice, and I would have used the feature a few times over the years. The specification is straightforward, as it is ordinary placeholder syntax. Let me check: which would normally be written  | 
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.1.3
Minimized code
Output
Expectation
Successful compilation
Seq(1, 2, 3).map(s"${_} ")yields different error:Unbound placeholder parameter; incorrect use of _Beta Was this translation helpful? Give feedback.
All reactions