> -----Original Message-----
> From: css-d-boun...@lists.css-discuss.org [mailto:css-d-
> boun...@lists.css-discuss.org] On Behalf Of david
> Sent: Wednesday, August 11, 2010 3:12 PM
> To: css-d
> Subject: Re: [css-d] CSS3 animations considered harmful
> 
> tedd wrote:
> > At 9:19 PM -0400 8/10/10, David Laakso wrote:
> >> Gabriele Romanato wrote:
> >>>  Hi!
> >>>  need some responses and criticisms about my opinions expressed
> >>> right
> >>>  here:
> >>>
> >>>
> >>> http://onwebdev.blogspot.com/2010/08/css3-animations-
> considered-harm
> >>> ful.html
> >>>
> >>>  HTH ^^/
> >>>
> >>  > Gabriele Romanato
> >>
> >>
> >> CSS is a programming language: albeit, a very simple one. It copes
> >> with "look and feel." Expanding CSS to include more than that is
> >> scary. But therein may, or may not, lie the future. /Push the
> >> envelope./
> >>
> >> Best,
> >> ~d
> >
> > I agree and was very close to responding as such. However, I didn't
> > think my contribution would amount to anything in that forum.
> >
> > In any event, people who say that CSS is not a programming language
> > must have a better understanding of programming than me -- after
> all,
> > I only wrote my first line of code 45 years ago and still haven't
> > mastered it.
> 
> CSS isn't a programming language. No control constructs like
> IF/THEN/ELSEIF, SWITCH, etc. No variables. The only programming
> language presence really are the MS extensions (Javascript functions).
> 

I wish there were variables.  Even variables of the macro kind for defining a 
color palette would be really great.  MAIN_COLOR = #123456;

border-color: MAIN_COLOR;
color: MAIN_COLOR;
Want to change your main color from green to blue? Change one line!  How 
awesome would that be?  But anyway...

I think the lack of control structures is a little erroneous...  the entire 
language is a giant switch statement.  If there's an element that matches such 
and such, apply these properties...

Switch (element) {
  Case 'p': margin: 1em;
}

We just leave the switch() case: out for brevity. :P

Also, isn't it instructions for a computer?  Isn't that the definition of a 
programming language?  I can understand HTML not being a language, as it 
doesn't, by itself, cause anything to happen to the text (default styling is 
CSS, after all). But CSS actually does stuff.

---Tim


______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to