I don't think that most people have any idea what "$some-color-var + 20"
would do. it certainly doesn't do "lighten($some-color-var, 20)"

$ sass -i
>> #777 + 20
#8b8b8b
>> lighten(#777, 20)
#aaaaaa

chris

On Sun, Aug 8, 2010 at 3:09 PM, Lorin Tackett <[email protected]>wrote:

> It's easier to write &:hover {color: $some-color-var + 20;} than to write
> &:hover {color: lighten($some-color-var, 20);}
>
> I really just like the convenience of it. It's inarguable that color math
> is better in any way to sass' color functions. Color math just panders to my
> lazy side.
>
> --
> Lorin Tackett
> http://lorintackett.com
>
> On Aug 8, 2010, at 2:43 PM, Chris Eppstein wrote:
>
> The benefit of doing it now is that there'll be fewer uses of it to fix
> later when we remove it ;)
>
> How do you use the color math? I don't find it useful beyond adding and
> subtracting gray which could be replaced by calls to lighten() and darken().
>
> chris
>
> On Sun, Aug 8, 2010 at 2:37 PM, Lorin Tackett <[email protected]>wrote:
>
>> I can get behind that. But I'm in conflict about the right course of
>> action.
>>
>> I don't like the idea of removing features just to re-implement them in a
>> different way at a later date. I'm not opposed to shepherding the user into
>> using the awesome color functions vs. the color math, but I'm not seeing the
>> benefit of removing them at this time.
>>
>> I still use color math sometimes when I'm feeling lazy (mostly :hover
>> states).
>>
>>  --
>> Lorin Tackett
>> http://lorintackett.com
>>
>> On Aug 8, 2010, at 2:19 PM, Chris Eppstein wrote:
>>
>> It's possible that the color math will re-emerge in a later release as
>> color operations that make sense. For instance *, +, and - could be the
>> color math similar to what photoshop does for multiply, add, and subtract
>> instead of rgb-component based algorithms.
>>
>> But mostly because having features that people don't/shouldn't use creates
>> more to learn and understand and can add to a negative impression of the
>> language.
>>
>> chris
>>
>> On Sun, Aug 8, 2010 at 1:14 PM, Lorin Tackett <[email protected]>wrote:
>>
>>> Is there a reason color math should be deprecated? Is it holding back the
>>> development of Sass?
>>>
>>>  --
>>> Lorin Tackett
>>> http://lorintackett.com
>>>
>>> On Aug 8, 2010, at 10:15 AM, Chris Eppstein wrote:
>>>
>>> Now that sass has the color functions, we are considering deprecating
>>> color math syntax which is not very useful in our experience. This means
>>> that the following syntax would be slated for removal:
>>>
>>> #abc + #321 => #ddd
>>>
>>> #abc - #321 => #79b
>>>
>>> #333 * 3 => #999
>>>
>>> #999 / 3 => #333
>>>
>>> The full set of color arithmetic that would be deprecated are documented
>>> here:
>>>
>>> http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#color_operations
>>>
>>> If you are using these features, you'd be given deprecation warnings so
>>> that you could find and change those expressions to functional
>>> transformations documented here:
>>> http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html
>>>
>>> If you feel this shouldn't be done or that there's a reason to keep any
>>> of the existing color arithmetic please let us know.
>>>
>>> Chris
>>>
>>> --
>>> 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.
>>>
>>>
>>>
>>> --
>>> 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] <haml%[email protected]>.
>>> For more options, visit this group at
>>> http://groups.google.com/group/haml?hl=en.
>>>
>>
>>
>> --
>> 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.
>>
>>
>>
>> --
>> 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] <haml%[email protected]>.
>> For more options, visit this group at
>> http://groups.google.com/group/haml?hl=en.
>>
>
>
> --
> 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.
>
>
>  --
> 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] <haml%[email protected]>.
> For more options, visit this group at
> http://groups.google.com/group/haml?hl=en.
>

-- 
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