Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Wisp: A light Lisp written in C++.
(1) C++ has std::to_string nowadays. You don't need to roll your own.
(2) Environment::get would be more efficient if you used a hash table (e.g. unordered_map) instead of many ifs.
(3) It's better to pass std::string and std::vector by const reference, to avoid making a copy. Also take a look at std::string_view.
(4) const char[] is generally preferable to #define.
There are no comments on this comment yet.
(1) C++ has std::to_string nowadays. You don't need to roll your own.
(2) Environment::get would be more efficient if you used a hash table (e.g. unordered_map) instead of many ifs.
(3) It's better to pass std::string and std::vector by const reference, to avoid making a copy. Also take a look at std::string_view.
(4) const char[] is generally preferable to #define.