3 ms·
There's an argument to be made for having basic so-called leaf modules in the standard library. That is it makes it far simpler to get a basic installation of C
by daemin 8y ago
There's an argument to be made for having basic so-called leaf modules in the standard library. That is it makes it far simpler to get a basic installation of C++ and start doing cool things with it. Experienced developers or people that need domain specific features would be using their own specialised libraries anyway.
So instead of trying to figure out which one of the dozens of GUI frameworks to use in making a window and have it change colour, you just write it using the standard library. You want to do a HTTP request, then there will be code in the standard library for that.
It will also save work trying to figure out which third party library to use when you want to do these things locally on a small test project.
- geezerjay 8y ago> So instead of trying to figure out which one of the dozens of GUI frameworks to use in making a window and have it change colour, you just write it using the standard library. Congrats, now you're stuck with something like Xwindows or MFC or AWT.
- pjmlp 8y agoWhich while not ideal, are guaranteed to be present, contrary to third party libs.
- geezerjay 8y agoThat assertion is disingenuous at best. That guarantee is only achievable at the expense of forcing compiler developers to maintain a GUI toolkig for all platforms. Who in their right mind believes that's reasonable or desirable?
- daemin 8y agoSo instead of a GUI library what about a HTTP or a network library as part of the standard? Surely handling TCP and UDP connections is an order of magnitude easier to implement and maintain.
- pjmlp 8y agoEveryone that wants a language to thrive instead of dealing with thousand incompatible implementations. Many C++ targets don't support IO or networking, so lets not burden embedded compiler developers with standard library bloat.
- daemin 8y agoThey're standard for the OS but not a standard for the programming language library. Granted AWT wasn't great but you could still make a GUI with it straight out of the box. It allowed you to make windows and buttons and start exploring the programming language. Like I said having a standard library option won't eliminate third party libraries, it will just provide something in the box for people to start using straight away.