On 26/01/2010 20:15, Nathan Weizenbaum wrote:
My plan was to have two possible argument formats for the rgba function:
rgba(r, g, b, a) and rgba(color, a). I think this is the most intuitive
input format, and more importantly is easily discoverable. It was what
Charles originally thought, for instance. In most cases, it would be
used with an RGB hex value; I'd consider the fact that it works with
color names and variables a bonus.

OK, good points. I did originally think that, didn't I.

I don't like the idea of introducing a new syntax for alpha colors on
our own. A CSS-based syntax already exists, and with the new rgba() form
it will definitely be easy enough to choose specific alpha values. I
don't want to risk potential incompatibility with future CSS syntax
additions and make the language diverge more from CSS unnecessarily.

That's a very good point indeed and one I was thinking about as I was driving home. I definitely see the point regarding not wanting to introduce unnecessary new syntax, whether that be a hexa() "function" or new hex colour notation.

So all good points well argued guys. That kind of wraps it up for me and I'm happy with your decision. Good debate. :)

Charles

--
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to