Comment by kragen
6 years ago
Skip the parentheses? Do you mean like
H1 x = "Topics";
Or is this an aspect of C++ I don't know about?
6 years ago
Skip the parentheses? Do you mean like
H1 x = "Topics";
Or is this an aspect of C++ I don't know about?
Yes exactly. And now if the constructor of your element, let's say a div, doesn't take a string but a std::initializer_list you can write it like this:
Those look like parentheses though. Also braces, but the Lua version has those too.