C+P: Combining the Usefulness of C with the Excellence of Prolog
1 min read
Summary
Needleful has produced a programming language that it claims is the best ever created, the C Plus Prolog, or C+P.
It combines the best elements of the Prolog programming language for logic programming and the C programming language for system programming.
The result resembles the syntax of Objective-C, but it is in fact valid SWI-Prolog code that is converted to C for compilation.
C+P was created partly to explore the potential of macros in a system programming language, and as a demonstration of the possibilities of a language-within-a-language to add compile-time features such as a form of generics.
However, the lack of validation and error messages in C+P is a significant flaw.