Re: [heycam/webidl] Disambiguate / explain maplike vs record (#303)

They're just... different things. One is a type, and one can be applied inside a type definition to generate methods. The fact that they both have to do with key/value mappings is a small similarity but it's like saying a banana and yellow paint are confusing because both deal with the concept of yellow. It's true, but you wouldn't confuse them, as they're in completely different categories. For example you can't return a maplike since it's not a type, it's a declaration that sits inside a type definition.


Maybe one of the other watchers of this repo can be more helpful than me :/. It's hard for me to understand why this would be more confusing than the difference between a stringifier (another thing that modifies a type definition) and a typedef (another type).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/303#issuecomment-278225584

Received on Wednesday, 8 February 2017 04:23:38 UTC