Better HN
topnewbestaskshowjobs
Log inSign up

loop2

33 karma · joined Mar 25, 2014 (12y ago) · 7 submissions

Submissions

comment 10y ago · link · parent

Sure as hell isn't making it a better place for Germans or anyone else in targeted nations.

comment 10y ago · link · parent

If that's the case, there must be a hell of a lot of unconvicted white murderers to make up for the 7:1 disproportion.

comment 11y ago · link · parent

Option has been around for a while as boost::optional or now std::experimental::optional. Result is coming and has a reference implementation as boost::expected. There's also a type-erased option type, "any".

They're quite nice, especially with a few trivial additions for ergonomics.

comment 11y ago · link · parent

For the record, KeePass added header authentication after (thanks to) this paper.

comment 11y ago · link · parent

This isn't about any of that. Any classes you would apply this technique to already have the desired semantics. The rule of zero just argues that you should not write copy/move/destructor functions outside of dedicated resource mananging classes, so that you can write other classes with zero special member functions (other than the main constructors).

comment 11y ago · link · parent

Types-as-variables is a very good insight. When I'd write C++ function headers where I could omit parameter names without losing any clarity, it'd feel really nice, but the implication never rose to consciousness.

comment 11y ago · link · parent

I started one a while ago, but I became fascinated by the "middle end" and bought a compiler textbook. Now I have SSA optmizations but no strings still.