Re:Why the C Programming Language Sucks
by quesera on Friday August 21, 2015 @08:14AM
(#10096971)
> I cannot write an abstraction in C, which closes a file handle automatically.
Of course you can.
It's just a question of convenience, and whether the resulting style would align with idiomatic C. In my imagined implementation, it would look more like awkward JavaScript.
There are many many C codebases that are internally consistent but don't look much like textbook C. Sometimes C is the best choice even when it's less convenient.
Of course you can.
It's just a question of convenience, and whether the resulting style would align with idiomatic C. In my imagined implementation, it would look more like awkward JavaScript.
There are many many C codebases that are internally consistent but don't look much like textbook C. Sometimes C is the best choice even when it's less convenient.