Re:Sass vs. SCSS: Which Syntax is Better?
by waffle_ss on Monday September 12, 2011 @09:40AM
(#2987213)
Neither; I used to use SCSS, but have moved on to LESS (http://lesscss.org/).
One thing that always annoyed me with SCSS is having to explicitly tag classes with the `@mixin` keyword before being able to use them elsewhere as a mixin. LESS doesn't make you do that.
Re:Sass vs. SCSS: Which Syntax is Better?
by waffle_ss on Monday September 12, 2011 @12:01PM
(#2987763)
Thanks for the info. I actually do very little with CSS (should have mentioned that / written with a more ignorant slant); in fact the only reason that I started using Less is because of that simple mixin feature.
I can definitely now see that Sass/SCSS is where it's at if one needs to do anything non-trivial with CSS. Guess I should really get back to using it over Less, as the basic syntax is almost identical anyhow.
One thing that always annoyed me with SCSS is having to explicitly tag classes with the `@mixin` keyword before being able to use them elsewhere as a mixin. LESS doesn't make you do that.
Also, one of the most powerful features of Sass today is @extend, which is something that Less definitely does not have: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#ex...
I can definitely now see that Sass/SCSS is where it's at if one needs to do anything non-trivial with CSS. Guess I should really get back to using it over Less, as the basic syntax is almost identical anyhow.
As far as Sass vs. Less goes, I think it's great that both projects exist and are being improved and adopted at such a rapid pace.
Less certainly borrowed some early ideas from Sass, and in turn SCSS syntax almost certainly exists because of Less.