- From: fergald via GitHub <sysbot+gh@w3.org>
- Date: Tue, 27 Mar 2018 04:35:54 +0000
- To: public-css-archive@w3.org
In my model the partmap is a dictionary where the values are <code>Set()</code>s of part names. So deleting would be <code>partmap['a'].delete('b')</code> and to remove "a" entirely, <code>delete partmap['a']</code> (although <code>partmap['a'].clear()</code> would have the same effect). What's the tradeoff between a dictionary of sets and something with an explicit API. Are there operations that dictionaries/sets allow that we wouldn't want or conversely are there operations dictionaries/sets don't allow that we would want and couldn't add later without breaking compatibility? I don't really want to write up an API for something that behaves essentially as a dictionary of sets if I can avoid it. -- GitHub Notification of comment by fergald Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2411#issuecomment-376394372 using your GitHub account
Received on Tuesday, 27 March 2018 04:37:08 UTC