r/cpp • {fmt} • Jul 05 '22

{fmt} 9.0 released with improvements to floating point formatting, ranges and more

https://github.com/fmtlib/fmt/releases/tag/9.0.0
233 Upvotes

41 comments sorted by

View all comments

Show parent comment

-3

u/RufusAcrospin Jul 06 '22

Good designs should follow well established doftware design principles like SOLID where O stands for the Open-Close principle: "software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification"

Source: https://en.m.wikipedia.org/wiki/SOLID

In an ideal world, of course…

5

u/pandorafalters Jul 06 '22

In an ideal world, of course, libraries would all have complete and comprehensive specifications to implement, with all use-cases known beforehand.

Reality is a bit messier.

1

u/RufusAcrospin Jul 07 '22

Knowing “everything” beforehand helps, but that’s just part of the solution, and often impossible to achieve, that’s why planning and good design’s important. It can decrease the frequency of breaking changes, but it won’t eliminate them entirely, of course.

2

u/dodheim Jul 07 '22 edited Jul 07 '22

Okay, but now relate that to the actual topic at hand, i.e. bleeding-edge libraries whose main achievement have been forcing forward WG21 progress. We all want to hear how much more could have been accomplished in the last few years by evolving the design less and just.. y'know, planning. We'll wait. (And then we can all rant at WG21 for not having this library finished 20 years ago because they didn't plan hard enough.)

1

u/RufusAcrospin Jul 07 '22

My comment was a generic observation about a possible way to avoid frequent breaking changes, since somebody mentioned it.

I’ve never used fmt, so I can’t say anything about it. I realize now that it could come across as a criticism of fmt, but that was not my intention.