W3C home > Mailing lists > Public > www-style@w3.org > July 2013

[css-regions] Reworking getNamedFlows()

From: François REMY <francois.remy.dev@outlook.com>
Date: Sat, 27 Jul 2013 05:48:26 +0200
Message-ID: <DUB120-W41BBF8B6F6115163A7593DA56B0@phx.gbl>
To: "www-style@w3.org" <www-style@w3.org>
CC: "stearns@adobe.com" <stearns@adobe.com>
I would prefer getNamedFlows() to return a [MapLike] object instead of this hybrid collection with getters. My main reason not to like it is that it causes issues when some flow is named "length" or "item" because developers expect document.getNamedFlows()[flowName] to return the flow, which it doesn't. It's also somehow expensive to generate and then GC that mixt int/index-NamedFlow map, which is a waste if the author goal is just to retrieve one single flow by name, or just iterate over the collection.
 
If [MapLike] isn't a solution due to iOS7 target, can we settle instead on getNamedFlows() to return a sequence<NamedFlow> and add a new method, getNamedFlow(name), to return a NamedFlow? Those seems two different use cases to me anyway. You either want all flows to iterate over them or just one by name.
 
Thoughts?
 		 	   		  
Received on Saturday, 27 July 2013 03:48:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:32 UTC