Did you like how we did? Rate your experience!

4.5

satisfied

46 votes

Would you stop using C if another C-like portable assembler was?

Type safety? Hell no, one of the reasons I use C is because its type system is very loose. If I wanted a compiler to bitch at me because I tried to use an enum type as a regular int then Id use C++. Data is nothing more than arrays of bytes and C was designed with this in mind, the type system C has is there only to prevent some unintended operations. Adding type safety to C would also be completely pointless since unions exist which lets you completely circumvent type data. Modules? C already has modules so Ill assume you mean higher-level, precompiled modules to which I will ask, how will you implement modules without using header files? Header files arent just for function prototypes but also to make struct, union, typedefs, and enums defined for modules How would you make those type definitions available to the other modules and still keep modules lightweight like Cs simple module system already does? Package Manager? Many various Linux distributions already have package managers for their C and C++ environment so realistically, this wont really change much at all. So no, I wouldnt really stop C because youre not really solving anything concerning C at all. Fighting with C is like fighting the sun, everything in the computing world is the way it is because of C. Instead of trying to fight against C, you should try working with it like every other (living) programming language does while all the languages that try to replace C fall by the wayside.

100%
Loading, please wait...