Re:Why Sass And Languages Like It Will Triumph
by ighost on Tuesday January 19, 2010 @02:29AM
(#1061706)
I agree, CSS preprocessor is a more fitting term.
It does trivial macro expansion and arithmetic. No control or data structures.
Re:Why Sass And Languages Like It Will Triumph
by chriseppstein on Tuesday January 19, 2010 @02:46AM
(#1061716)
That's incorrect. Your knowledge is more than 1 year old.
SassScript is Sass's built in scripting language and it is turing complete. Here's a stylesheet that calculates and displays the mandlebröt set using background colors:
Re:Why Sass And Languages Like It Will Triumph
by jlong on Tuesday January 19, 2010 @02:49AM
(#1061721)
I prefer to call it a designer's programming language. BTW, Sass does have simple control statements (if and while). I didn't cover all of the things that Sass can do. To get that see: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html
I'm not sure the analogy between languages compiling to machine code is a particularly good one. High-level languages compile to machine code because it's extremely tricky to create or update hardware to support high-level languages, and machine code is especially ugly. Neither of these apply to anywhere near the same extent to CSS, which significantly reduces the advantages of added abstractions.
I'd also be way of calling Sass a "programming language". CSS preprocessor would be more accurate.