Đỗ Huyền Trang
New member
Is Swift a superset of C?
Answer
Unlike Objective-C, which is a proper superset of C, Swift has been built as an entirely new language. Swift cannot compile C code because the syntax is not compatible. However, C code behind the APIs needs to be compiled separately, using a C compiler.
Answer
Unlike Objective-C, which is a proper superset of C, Swift has been built as an entirely new language. Swift cannot compile C code because the syntax is not compatible. However, C code behind the APIs needs to be compiled separately, using a C compiler.