Bitwise operators in Sass

1 · Hugo Giraudel · June 22, 2014, midnight
Edit (2015/06/06): this is an experiment, please don’t use this code in production. A couple of days ago, Valérian Galliat and I had the crazy idea of implementing bitwise operators in Sass. It went like this: Hugo: Do you know how bitwise operators work? Val: Yes. Hugo: Do you think we could implement them in Sass? Val: No. (Loading…) Val: Well, in fact we could. Hugo: LET’S DO IT! And so we did, hence a short article to relate the story as well as providing a (useless) use case. But first ...