4 ms·
SASS, imo, is a much more mature and interoperable language. Compare .mixin (@a) when (lightness(@a) >= 50%) { display: none; } to @if $boolean @d
by cnp 14y ago
SASS, imo, is a much more mature and interoperable language.
Compare
.mixin (@a) when (lightness(@a) >= 50%) {
display: none;
}
to
@if $boolean
@debug "$boolean is #{$boolean}"
display: block
@else
@debug "$boolean is #{$boolean}"
display: none
Note, also, that there's a logger.
- a_m0d 14y agoHow are these two code samples related to each other? They appear to be for completely different use cases, and therefore I'm not sure that they actually demonstrate anything useful.
- cnp 14y agoThey are illustrations of two forms of IF statements. One is very weird and hard to use, and the other is... standard.