r/linux • u/rastermon • Aug 16 '14
Yet another C object model
https://phab.enlightenment.org/phame/live/1//post/yet_another_c_object_model_but_better/
54
Upvotes
r/linux • u/rastermon • Aug 16 '14
View all comments
Show parent comment
8
u/[deleted] Aug 16 '14
Then go and use something trendy. Objective-C? Swift? Ruby? Clumsy C++? Rust? Pick your poison.
I don't believe any FOSS developer uses C because it's nice but because we like it and it gets things done.
-Wall solves this. There's no reason not to use this flag.
Heck no. Absolutely not. Give me a good reason, and it better be a Shakespearian masterpiece.
What's wrong with occasionally using gotos to handle failures?
I could agree for strings. I disagree for arrays.
Most compilers already do for static arrays, which is the only place possible.
Why? I like macros. They are a nice, robust way of getting things compiling the way you want them to. What's the point of hiding macros? That's unnecessary. And I absolutely, unequivocally hate the C++ shit of having your entire code in classes in headers. Fuck no, I like my .h + .c file combo any day of the week all week.
For what purpose? Ifdef is not a hacky way of doing multiplatform stuff, it's the one and only. Considering most of the multiplatform shenanigans come from different definitions of functions it's the right tool for the job, if a bit ugly.