title: How can I use the same syntax sugar of Array or Dictionary in an Object in Swift?
body: <p>I am creating an object that mimic Dictionary and Array. I can use <a href="https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Subscripts.html" rel="nofollow">subscript</a> and can do a lot of thing. </p>
  
  <p>But can I initialize my object with an empty Dictionary or Array <strong>ONLY</strong> with this line?</p>
  
  <pre><code>let myObject:mimicArray = []
  let myObject2:mimicDictionary = [:]
  </code></pre>
  
  <p>What I need to do is just a common init like this</p>
  
  <pre><code>let myObject = mimicArray()
  let myObject2 = mimicDictionary()
  </code></pre>
  
  <p>But I would like to use this syntax sugar. Can I do it?</p>