Objectivist C: a programming language wherein each object "must live for its own sake, neither sacrificing itself to others nor sacrificing others to itself."
@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]; } } // ...
An Introduction to Objectivist-C (via O'Reilly Radar)
I write books. My latest is a YA science fiction novel called Homeland (it's the sequel to Little Brother). More books: Rapture of the Nerds (a novel, with Charlie Stross); With a Little Help (short stories); and The Great Big Beautiful Tomorrow (novella and nonfic). I speak all over the place and I tweet and tumble, too.
MORE: computer science • Funny • happy mutants • politics
More at Boing Boing
-
leroybrown
-
wysinwyg
-
leroybrown
-
-
-
Purplecat
-
chellberty
-
Alan Olsen
-
Dave Lloyd
-
gibbon1
-
-
http://www.facebook.com/people/Louis-Brown/100000890178471 Louis Brown
-
mistercat
-
http://profiles.yahoo.com/u/42THFKXIPMJHQBIH6OPI4RVIDY Thebes
-
http://www.plan8.tv Roanhouse
-
-
Fnordius
-
Doomstalk
-
Robert Cruickshank
-
RayCornwall












@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];
}
}
// ...