HackerTrans
TopNewTrendsCommentsPastAskShowJobs

affenape

no profile record

comments

affenape
·hace 3 meses·discuss
From the proposal, I see a bunch of new keywords and rules - alright given the language's heritage. But what happens if I "relocate" a variable value - would a "shell" remain or how exactly C++ is supposed to handle this:

  auto value = create_value();
  if (some_cond) {
    consume_value(std::move(value)); // not sure whether it's move here, but I guess my point is clear
  }

  use_value(value);
affenape
·hace 3 meses·discuss
Finally, reflection has arrived, five years after I last touched a line in c++. I wonder how long would it take the committee, if ever, to introduce destructing move.
affenape
·hace 4 meses·discuss
Not necessarily. A coroutine encapsulates the entire state machine, which might pe a PITA to implement otherwise. Say, if I have a stateful network connection, that requires initialization and periodic encryption secret renewal, a coroutine implementation would be much slimmer than that of a state machine with explicit states.
affenape
·hace 8 meses·discuss
> A %PRODUCTNAME% next generation editor/ide is released

> Look inside

> VS Code