4 ms·
Well Objective C was always touted as a superset of C, any valid C program is a valid Objective-C program, the same with Typescript and Javascript. So I guess
by SigmundA 8y ago
Well Objective C was always touted as a superset of C, any valid C program is a valid Objective-C program, the same with Typescript and Javascript.
So I guess it depends on your usage of variant, does that include strict supersets?
- Const-me 8y ago> depends on your usage of variant, does that include strict supersets? In my rulebook, the answer’s no. When you say “X is a variant of Y” I assume it means Liskov substitution principle must be true for them. You can’t compile C++ with C compiler, therefore C++ is not a variant of C.
- SigmundA 8y agoHmmm Liskov substitution principle is an object oriented programming concept, not sure it applies real well to languages, it definitely wasn't coined for that use. If you squint a certain way since a Typescript library transpiled can be used from any Javascript library then it would be roughly analog to the Liskov substitution principle for types in an OO language. The same applies to Objective-C as it can be called from C.