Re:A “Better C” Benchmark
by e12e on Saturday March 27, 2021 @12:59PM
(#26603655)
> Not a big deal, because fully functional and 100% correct program wasn't the goal here
Wasn't it? It reminds me about the old article by Strostrup on c/c++ for beginners (I seem to link to this quite often, apologies if it gets repetitive):
One point of using c++ over c is that it should be easier to get a program that is in fact correct - regarding things like closing files etc. (that said conciously leaking some recources ("do and die") could be considered idiomatic c i suppose).
Re:A “Better C” Benchmark
by lew89 on Saturday March 27, 2021 @03:30PM
(#26604845)
Yes, I consider that memory management is the biggest problem with C. Always the question is what is more valueable to you: simplicity or memory management.
Wasn't it? It reminds me about the old article by Strostrup on c/c++ for beginners (I seem to link to this quite often, apologies if it gets repetitive):
https://www.drdobbs.com/learning-standard-c-as-a-new-languag...
One point of using c++ over c is that it should be easier to get a program that is in fact correct - regarding things like closing files etc. (that said conciously leaking some recources ("do and die") could be considered idiomatic c i suppose).