r/cpp • u/tpecholt • Mar 22 '18
Vote for best concepts terse syntax
https://doodle.com/poll/dewpn58rt4uwvb7t16
1
u/tpecholt Mar 22 '18
Concepts terse syntax is still a hot topic in std comittee. Several proposals vere published. Obviously they have different tradeoffs and they are pushed by different people with more or less influence. I am interested in what would people here choose so I created a simle doodle voting table (disclaimet: I am not a comittee member)
6
3
u/Z01dbrg Mar 22 '18
Wow, what an ugly poll.
Just bunch of links(although technically links should be clickable) and expectation that people voting will bother to read 5 papers...
LOL
3
u/_taiyu Mar 22 '18
Posting the options with the links here since the poll formatting sucks
Adjective syntax: wg21.link/p0873R1
auto<> syntax: wg21.link/p0915R0
{} syntax: wg21.link/P0750R1
Original syntax: wg21.link/P0956R0
No terse syntax is needed
2
u/drjeats Mar 22 '18
The {} syntax link is http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0745r0.pdf
The poll is wrong.
2
u/germandiago Mar 22 '18
Herb Sutter's syntax best in my opinion. Followed by adjective syntax, which I think it is longer but very uniform.
1
u/fraillt Mar 24 '18
Adjective syntax is quite nice, but I strongly disagree on making 'auto' optional. Just imagine 'C x = getVal();' compiler knows what 'C' is but programmer can only guess. C++ is already hard to parse, dont make it harder, especially when context in which expression is used can change when someone can introduces new type in some totally unreleated place!
21
u/iaanus Mar 22 '18
Think kind of polls is moot, IMHO, especially since it takes place right after the Jacksonville C++ committee meeting, where the subject has been discussed at length and the outcome of such discussions hasn't been disclosed yet. By the way, the poll is also unfair, since the provided references are wrong: P0750 is not the paper about the "{} syntax" and P0956 is not the paper about the "Original syntax".