News for hackers. Stuff that matters.
Re:Why C++ sucks (2016 edition) by chris_wot on Monday February 22, 2016 @09:01AM (#11150797)
But with any complex interface, wouldn't it be a good idea to introduce a less complex facade that only deals with common usecases, and for complex use cases use that underlying interface?
Re:Why C++ sucks (2016 edition) by gpderetta on Monday February 22, 2016 @09:50AM (#11151087)
The whole point of the complexity chrono interface is to prevent mistakes caused by accidentally mixing different units. Providing a default unsafe interface would completely defeat the point.
Re:Why C++ sucks (2016 edition) by masklinn on Monday February 22, 2016 @10:27AM (#11151405)
That an interesting point of view to take in defence of C++ of all things.
Re:Why C++ sucks (2016 edition) by gpderetta on Monday February 22, 2016 @12:20PM (#11152449)
Sorry, I might misparsing your replay, but are you saying that std::chrono is overly strict? Or that because C++ (and its C heritage) has allowed unsafe implicit conversions in the past, it should continue doing it in the future?
Re:Why C++ sucks (2016 edition) by masklinn on Monday February 22, 2016 @01:36PM (#11153124)
Just that it feels strange to see safe defaults/interfaces used to argue for C++, nothing more.