Objectivist-C 是 Objective-C 的框架,示例代码:
#import <Fountainheader.h> @interface HelloWorld // ... @end @implementation HelloWorld - (void)printHelloWorld { NSString *hello = @"I am. I think. I will."; Printer *printer = [[Printer alloc] init]; if (printer) { [printer print:hello inExchangeForUSDollars:2.00]; [printer release]; } else { // In Objectivist-C, objects are self-sufficient. // Here, I implement string printing from scratch. [self createTheUniverse]; [self createStandardOutputDevice]; [self print:hello]; } } // ... @end