Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The other difference is that SCSS nesting can also be used for string concatenation, as in BEM classes. Such as:

  .some-class {
      color: red;
      &__child {
          color: blue;
      }
  }
Which compiles to

  .some-class {
      color: red;
  }
  .some-class__child {
      color: blue;
  }



Oh right I kinda hate that and feel like it leads to strangely named classes




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: