| 12:35 | <annevk> | littledan: I think https://github.com/whatwg/html/issues/9042 might be of interest to you |
| 17:01 | <ptomato> | is there an existing idiom in ECMA-262 spec language for removing duplicates from a List? |
| 17:01 | <bakkot> | don't think so |
| 17:01 | <bakkot> | for Sets etc we just avoid putting duplicates in the list in the first place |
| 17:02 | <bakkot> | the usual idiom for which is like "If list does not contain item, add item to list" |
| 17:03 | <bakkot> | (Set.prototype.add is written in a slightly different style for... reasons) |
| 17:04 | <ptomato> | thanks! |
| 17:05 | <shu> | if possible, doing deduplication up front is better yeah |
| 17:05 | <shu> | i think it's probably fine to say "remove duplicates from list" if you need to do it after the fact, but we'd need to add a bit in the identity section about that language using "is" for comparison |
| 22:49 | <ptomato> | we don't have an existing idiom for break/continue in spec language loops either, right? |
| 23:06 | <ljharb> | not that i know of |
| 23:06 | <ljharb> | usually that might be in an AO that early-returns |