Hacker News new | ask | show | jobs
by cnp 4887 days 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.
1 comments

How 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.
They are illustrations of two forms of IF statements. One is very weird and hard to use, and the other is... standard.