What is the alternative to maps in polymer Dart 1.0?

和自甴很熟 提交于 2019-12-12 23:20:21

问题


I notice in the Polymer Dart issue #569, that the use of maps is discouraged, because they're inefficient. What is (will be) the alternative? I use maps a lot.


回答1:


The original reasoning for the comment about inefficiency no longer applies. Previously the whole map had to be copied to a new JsObject each time it was passed to JS, but that is no longer the case.



来源:https://stackoverflow.com/questions/32791689/what-is-the-alternative-to-maps-in-polymer-dart-1-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!