Namespaces
Variants
Views
Actions

Talk:cpp/language/explicit cast

From cppreference.com

What's the difference between expressions and expression-list in the Syntax?

"expression-list" is what the standard calls this. Good point, changed to use the same for all uses. --Cubbi (talk) 12:59, 26 June 2020 (PDT)
The intention was that "expressions" represents two or more expressions, while "expression-list" represents zero or more. I decided to separate "new_type ( expression )" from "new_type ( two-or-more-expressions )" because they have different semantics (the former is equivalent to a C-style cast, the latter is mostly a constructor call).
But I failed to notice the std::vector<int>({1,2,3}) case. --D41D8CD98F (talk) 20:35, 26 June 2020 (PDT)

I was searching for the definition of expression-list here, and it was not found in by the wiki search engine. I assume it is a comma-separated (,) list of expressions, but it would be nice to read the actual definition. Now, I can find the standard myself, but would it be a good idea to create wiki articles that explain or at least define any standardese language used here? Or perhaps add footnotes to any such terms used (with reference to the relevant standard document)?