News for hackers. Stuff that matters.
Re:Show HN: Python to C++14 transpiler by morgenkaffee on Monday January 18, 2016 @04:20AM (#10923413)
Yes you would have to program in a subset of python. But type annotations are not always needed.

For the array I do a little hackery. You can define the array without an initial value in the container and I can guess the value type.

  arr = []
  arr.append(1)
it will spit out

  std::vector<decltype(1)> arr{};
  arr.push_back(1);

There are no comments on this comment yet.