4 Replies
      Latest reply on Feb 13, 2017 4:49 PM by Macho Man Randy Savage
      Macho Man Randy Savage Level 3 Level 3 (365 points)

        If I'm just typing a variable out like:

         

        var someURLs = Array<URL>()
        

         

        I get a compiler warning, with a suggestion that will change the code to:

         

        _ = Array<URL>()
        

         

        I just typed it out, I'm about to use the variable in a couple of seconds, so I really don't want to use the suggested fix.

         

        In Objective-C we get a warning, which is useful so you don't forget, but don't get hinted to do something we don't want to do.

         

        The compiler seems pretty aggressive in trying to get you to fix things, making suggestions that make no sense because you are still writing the code?