title: What's the difference between loadfile, require, and import
body: <p>It seems like there are multiple ways to access one file from another.  Why would I choose one method over another?</p>
  
  <pre><code>local a = loadfile('foo.lua')()
  local b = require 'foo.lua'
  local c = import 'foo.lua'
  </code></pre>