The compiler should warn when ";" is accidentally used instead of ":" at the end of a line #18777
                  
                    
                      smarter
                    
                  
                
                  started this conversation in
                Feature Requests
              
            Replies: 1 comment
-
| It could lint any semi that is not required for parsing. The optional semi before a guard in a for loop may be controversial enough to occasion fisticuffs in the break room. | 
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Spot the bug:
On a French keyboard,
;and:are on adjacent keys, so this is an easy mistake to make and hard to spot given how similar both of these characters look. When omitting the:we get a warning, but no such warning appears when the line ends with a;:Beta Was this translation helpful? Give feedback.
All reactions