News for hackers. Stuff that matters.
Re:Ask HN: Good C++ code bases to read? by jcelerier on Thursday October 29, 2020 @05:26AM (#24928630)
> So, you get the best of both worlds.

I would really not call code that looks like this "best of both worlds"

    KJ_IF_MAYBE(value, maybeValue) {
      use(value);
    } else {
      handleNull();
    }
when compared to

    if(!value) 
      handleNull();
    use(*value);
Re:Ask HN: Good C++ code bases to read? by kentonv on Thursday October 29, 2020 @08:50PM (#24937942)
Kind of unfair that you didn't include the `else` or the braces in your version, just to make it look shorter.