- From: Lea Verou via GitHub <sysbot+gh@w3.org>
- Date: Tue, 15 Dec 2020 01:13:10 +0000
- To: public-houdini-archive@w3.org
As @plinss points out, another solution would be polymorphism. We could accept an array OR an object literal: ```js new CSSRGB([1, 0, .6]) new CSSRGB({r: 1, g: 0, b: .6}); ``` Aside: can we please name the constructor something other than CSSRGB, i.e. two different acronyms smushed together? A namespace, and/or the word "Color" somewhere would help. @tabatkins Re-iterating as I think it was lost in the argument discussion: > Stepping back for a bit, speccing Typed OM for colors is a fairly substantial undertaking and it would be good if we could get some consensus on the overall architecture and design decisions before discussing the minutiae of constructor arguments. I know there are many people in the group who would have input on said design decisions and would love to partake, myself and @svgeesus included. Where can we find this draft? It's not anywhere in this repo. Searching for `CSSRGB` in the repo yielded no results. There are a lot of design decisions involved that are more substantial than constructor arguments, and it would be good to discuss and iterate earlier rather than later. -- GitHub Notification of comment by LeaVerou Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/1014#issuecomment-744944188 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 15 December 2020 01:13:12 UTC