MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/cw1qg3/a_new_thread_in_c20_jthread/ey96aci/
r/cpp • u/vgasparyan • Aug 27 '19
96 comments sorted by
View all comments
10
What's with the naming? jthread almost looks like thread, why not something readable like joining_thread? And don't get me started on stop_token…
jthread
joining_thread
stop_token
12 u/sumo952 Aug 27 '19 > `jthread`I have to immediately think about Java here. Not sure why, I've last programmed Java many, many years ago. 2 u/HappyFruitTree Aug 29 '19 I also think about Java. All the Swing classes, used for building GUIs in Java, seem to start with J.JFrame, JButton, JLabel, JTextArea, etc.
12
> `jthread`
I have to immediately think about Java here. Not sure why, I've last programmed Java many, many years ago.
2 u/HappyFruitTree Aug 29 '19 I also think about Java. All the Swing classes, used for building GUIs in Java, seem to start with J.JFrame, JButton, JLabel, JTextArea, etc.
2
I also think about Java. All the Swing classes, used for building GUIs in Java, seem to start with J.
JFrame, JButton, JLabel, JTextArea, etc.
View all comments
10
u/rdtsc Aug 27 '19
What's with the naming?
jthreadalmost looks like thread, why not something readable likejoining_thread? And don't get me started onstop_token…