Re:C++26: A Placeholder with No Name
by bigstrat2003 on Saturday January 11, 2025 @02:49PM
(#42668458)
Verbosity is not bad. When it makes the code clearer, it is even a good thing.
[ Parent
| on HN ]
Complex type parameters make explicit typing highly impractical to be used all the times
I like rust's approach in that it allows a mixture of explicit types and type inference using placeholders
For example: "let x : Result<Foo<int, _>, _> = make_foo();"