2 ms·
If you want to write a library that can be used from many programming languages in many operating systems, exotic processors and application plugins, use C. I
by nabla9 7y ago
If you want to write a library that can be used from many programming languages in many operating systems, exotic processors and application plugins, use C.
If you want to write a new programming language that does the same from the get-go, make C as one of the compilation targets.
- cosmic_quanta 7y agoOr export a C-API! As other commenters have pointed out, use the right language for your use-case. Then, I agree that exporting a C interface is best.
- ncmncm 7y agoExporting a C interface preserves some flexibility. That is often best.