Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80C2890E4 for ; Fri, 24 Feb 2012 16:52:00 +0000 (UTC) Received: (qmail 33033 invoked by uid 500); 24 Feb 2012 16:51:59 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 33001 invoked by uid 500); 24 Feb 2012 16:51:59 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 32993 invoked by uid 99); 24 Feb 2012 16:51:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2012 16:51:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [80.237.132.80] (HELO wp073.webpack.hosteurope.de) (80.237.132.80) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2012 16:51:52 +0000 Received: from p4aa831.osaknt01.ap.so-net.ne.jp ([120.74.168.49] helo=[192.168.1.21]); authenticated by wp073.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) id 1S0yMl-0005oI-H5; Fri, 24 Feb 2012 17:51:31 +0100 Message-ID: <4F47C001.3010403@leichtgewicht.at> Date: Sat, 25 Feb 2012 01:51:13 +0900 From: Martin Heidegger User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: flex-dev@incubator.apache.org Subject: Re: [IDEAS] Collections and Generics References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;mh@leichtgewicht.at;1330102312;1a6ce551; X-Virus-Checked: Checked by ClamAV on apache.org Hello Sai, ActionScript3 does not support generics. You will not be able to create new "well-performing" basic types like Array. There are many approaches around like as3commons[1], as3-collections[2], addicted2flash [3] or Maashaack [4] but the performance is not really good. I once developed a generic Linked List with performance in mind but its rather difficult to really use [1] Things like Omars VectorList might be useful but I think that is different from what you are talking about - right? yours Martin. [1] http://code.google.com/p/as3-commons/source/browse/trunk#trunk%2Fas3-commons-collections%2Fsrc%2Fmain%2Factionscript%2Forg%2Fas3commons%2Fcollections [2] http://code.google.com/p/as3-collections/ [4]http://code.google.com/p/maashaack/source/browse/#svn%2Ftrunk%2FAS3%2Fsrc%2Fsystem%2Fdata [3] http://code.google.com/p/addicted2flash/source/browse/#svn%2Ftrunk%2Fsrc%2Fcom%2Faddicted2flash%2Futil [4] http://nanosome.org/util/latest/index.html#nanosome/util/list/List.html On 25/02/2012 01:14, sai pabbathi wrote: > Hello All, > > I've been thinking about creating my own version of collections and > Generics for a while now. I'm a java guy and I crave to have Collections on > the client side. Having the collections and generics would not hurt, it > would actually reduce the coding errors, and development time as most of > the time we will be working around the data in any type of application. > Some times I have to run the application to know the type of data that is > in the ArrayCollection, even though flex provides 'Vector' as way to > introduce generics into flex, it is not as powerful as the ArrayCollection, > and not many are aware of its existence. > > Also having a good set of collections like Map, Set, List, Queues would > help develop more robust client side applications. > > P:S: I'm unaware if adobe has already planned to roll out collections in > the near future. Its just an Idea! >