GNU sed 4.2.2 released; maintainer resigns
Posted Dec 23, 2012 11:31 UTC (Sun) by
khim (subscriber, #9252)
In reply to:
GNU sed 4.2.2 released; maintainer resigns by lu_zero
Parent article:
GNU sed 4.2.2 released; maintainer resigns
You can do in C everything you do in C++ and be as terse if not more.
This is kinda pointless argument. I mean: of course! Just embed interpreter of your favorite language and stuff the real program in a string.
This being said C++ can be used to improve readability and maintainability. Gold is great example: in cases where you need to support different types similarly yet slightly differently where "real" C program will be forced to use plethora of macro definitions which are not just harder to write and read but which are extremely hard to debug (and yes, both classic ld and gcc suffer from this malady) C++ program just uses templates with partial specialization.
The big question is not whether it's possible to use C++ to write more readable and/or maintainable program but specifically if GCC developers will be able to do that: C++ enthusiasts are notoriously hard to keep in check and this is where coding standards are vital. Standards which RMS quite expressly refuses to develop.
(
Log in to post comments)