Re:MutexProtected: A C++ Pattern for Easier Concurrency
by selimnairb on Thursday April 06, 2023 @07:42AM
(#35467040)
Yeah, the syntax/ergonomics is tortured. This is my problem with modern C++ in general. As someone who isn’t a full-time C++ programmer (but who
maintains a library written in C++), I have to shy away from anything too fancy as the syntax is too baroque and hard to recall.
[ Parent
| on HN ]
Re:MutexProtected: A C++ Pattern for Easier Concurrency
by simplotek on Thursday April 06, 2023 @08:42AM
(#35467577)
> Yeah, the syntax/ergonomics is tortured. This is my problem with modern C++ in general.
I disagree. I mean, the ergonomics in this case are indeed awful, but this has nothing to do with C++, modern or not. This is an API design problem, possibly made worse by people trying to be too clever for their own good.