title: Benefits of using class func vs func vs no class declaration
body: <p>Ok so I have a a bunch of helper functions in my project that I originally had in a class called Animate. I was wonder what are the benefits of declaring func vc class func.</p>
  
  <p>Lets use this as an example class:</p>
  
  <pre><code>class Animate{
      func moveView(...){
          ...
      }
  }
  </code></pre>
  
  <p>So I believe if I have a class func I don't have to instantiate the class as so.</p>
  
  <p><code>Animate.moveView(...)</code></p>
  
  <p>And if I just declare the function with func it would be:</p>
  
  <p><code>Animate().moveView(...)</code></p>
  
  <p>However if I don't declare the file as a class at all as so:</p>
  
  <pre><code>func moveView(...){
      ...
  }
  </code></pre>
  
  <p>When I call the function it is just:</p>
  
  <pre><code>moveView(...)
  </code></pre>
  
  <p>With no indication where the code came from and it can be just used like this anywhere in the project.</p>
  
  <p>What are the pros and cons of these three ways? Is not declaring a class bad practice? Or, is there some edge case that this is very useful? For example in my situation I have no need for a class since I am just creating helper functions and not an object.</p>
  
  <p>Thanks in advance for any insight on this!</p>