3 ms·
If you’re in a situation where you “truly need” type safe generic interfaces, why wouldn’t you just use a different language? I don’t understand your second po
by sfpotter 3y ago
If you’re in a situation where you “truly need” type safe generic interfaces, why wouldn’t you just use a different language?
I don’t understand your second point.
- uecker 3y agoThere is no other languages with the same advantages as C and a good type system.
- trealira 3y agoWhat advantages do you have in mind? Why not just use C++, Ada, or Rust?
- uecker 3y agoThe other point: For interoperability with other languages you often need to construct function calls at run-time. For this one needs to be able to describe types. Adding this by external libraries is always a pain because one has to carefully support the ABI of all supported architectures. A compiler can support this seamlessly. A _Typeof operator that returns a type that can be passed around and interrogated at run-time solves this in a very elegant and simple way.