138 points · by Jeaye · 9y ago · 39 comments
http://eli.thegreenplace.net/2011/12/15/understanding-lvalue...
a) markdown with embedded graphviz.
ex: https://github.com/TLmaK0/gravizo
b) a jupyter notebook (which also uses markdown blocks). jupyter can embed C++, so you can have interactive blocks that you can evaluate and play with.
ex: https://github.com/minrk/clingkernel/blob/master/cling.ipynb
Both seem more performant than in-browser PDF rendering.
Thanks for the suggestions.
e.g.
std::string_view sv{ "lvalue" };
or auto sv{ "lvalue"sv }; auto i{42}; // std::initializer_list<int>If you don't understand what you are writing, either the compiler (rust-like) or the runtime (script-like) should complain.
C++ usually does neither. I think that's undesirable. Why it does neither makes sense, but I wouldn't call it a strength.
https://www.reddit.com/r/cpp/comments/5zzurr/c_value_categor...
int const &f(int const &a) { return a; }
int r = f(3);
Is the value of r implementation-defined according to the standard?I think this is similar to the std::max/std::min stuff
Or have I suddenly gone blind by looking at C++ code one too many times? :)
Another drawback of colored backgrounds is that readers wanting to print out the pdf will consume ink/toner to render the non-white background.
I'm not a PhD in Colorology but choosing higher contrast colors completely eliminates that problem I think. It's an easy fix that opens up many new markets to your software.