So what this comes down to is: Sass has Compass and LESS does not. But
it goes deeper than that. The attempts at creating a real robust
project like Compass for LESS haven’t succeeded because the LESS
language isn’t robust enough to do it properly. Winner: Sass
一个强大的解释说:
Sass has actual logical and looping operators in the language.
if/then/else statements,for loops,while loops,and each loops. No
tricks,just proper programming. While guarded mixins are a pretty
cool,natural concept,language robustness goes to Sass. This language
robustness is what makes Compass possible.
我对这种肯定感到不安,并对此表示怀疑.这几天几乎所有东西都可以使用Javascript(LESS编译器).
题:
可以在LESS之上构建一个类似Compass的工具,或者语言(JS)不够健壮,就像帖子所说的那样?
注意:
答案应该集中在这样一个事实,即LESS足够强大或不够强大,无法构建类似指南针的工具,而不是您在主题中的个人偏好.
关注为什么(语言事实)你做那种肯定.
解决方法
lolmaus的回答暗示LESS与SASS没有相同的东西,所以为了模仿他的答案,让我简单回答如下:
LESS至少有一个指南针像compless正在进行中,以及语义网格系统(lessframework,semantic grid,fractionless),媒体查询操作工具(less media query solutions),各种内置数学和颜色工具,样式库(Bootstrap,3L,less elements,LESS hat,Clearless)等
简而言之,稳健性与它无关.两者都足够强大. SASS与Compass可能已经得到了更多的关注(更多的开发完成),但是SASS和LESS都有很多支持者和几乎并行的功能.