为什么我们不能有接头的数组集合?能有、数组

2023-09-09 21:39:49 作者:抹不掉的轻狂/*

这是我所知道的背后有集合类的整体思路是引入额外的包装方法,这将是方便开发人员。

From what I know the whole idea behind having collection classes is introduce extra wrapper methods which will be handy for developers.

那么,为什么ArrayCollection的Flex中似乎并没有一些方法阵列。 ArrayCollection中没有一个副本,CONCAT,连接或剪接,所以我们需要手工做副本返回一个新的数组方法呢?还是我失去了一些东西在这里?

Then why does ArrayCollection in Flex not seem to have some methods that array has. ArrayCollection does not have a copy, concat, join or splice methods which return a new array so we need to do the copy manually? Or I am missing something in here?

感谢。

推荐答案

您说的对,这些方法不存在。没有公布的理由的决定,我能找到。

You're right, the methods are not there. There is no published reason for the decision, that I can find.

如果要我猜,这只是胡乱猜测,我会说,事情prevailed业务方面当时,Adobe作出这一呼吁。这是不可能的猜测可能是因素一打的人 - 的例子包括不具有足够的开发人员完全充实每一个数据结构,或没有足够的时间的最后一个版本之前,或没有足够的pressure从客户这方面的工作,或没有足够的测试/支持/维护资源。

If I had to guess, and this is only a wild guess, I would say that the business side of things prevailed when Adobe made this call. It's impossible to guess could be anyone of a dozen of factors - examples include not having enough developers to fully flesh out each data structure, or not enough time before the last release, or not enough pressure from clients for this kind of work, or not enough testing/support/maintenance resources.