title: Setting UserDefault in Swift 3
body: <p>I'm learning Swift 3 and trying to get to grips with <code>UserDefaults</code>. This is the code:</p>
  
  <pre><code>    UserDefaults.standard.set("asher", forKey: "name")
  
      let name = UserDefaults.standard.object(forKey: "name")
  
      print(name)
  </code></pre>
  
  <p>When I run it I get a breakpoint at line 2 and when I comment out line 2 I get a breakpoint at line 1.</p>
  
  <p>Apart from the normal things in the console I get:</p>
  
  <pre><code>(lldb) 
  </code></pre>
  
  <p>Can anyone please explain my mistake?</p>