title: ActionScript 3 Vector.<T> VS. Array
body: <p>This question if a bit off topic, I just wanted feedback from most ActionScript/Flex developers out there.</p>
  
  <p>So would you use a Vector. rather than an Array when you're  expecting a collection of the same "type" of objects (and publishing for fp10)</p>
  
  <p>Let me clear that out :</p>
  
  <p>I'm defining a method in a class that expects one parameter of type "Array"</p>
  
  <p>Let's say the method's signature looks like this : </p>
  
  <pre><code>public function doSomethingWithChildren(selectedChildren:Array):void;
  </code></pre>
  
  <p>I'm expecting that all the elements in the "selectedChildren" Array are of type "DisplayObject" (even thought it seems quite logical), so I thought that it would be a bit smarter to re-write this function this way : </p>
  
  <pre><code>public function doSomethingWithChildren(selectedChildren:Vector.&lt;DisplayObject&gt;):void;
  </code></pre>
  
  <p>So, basically the only thing I'd like to know is if you think this is the way to go </p>
  
  <p>Thanks for yer feedback</p>