Hello, π!
In the beginning the Programmer created the main.m
.
The main.m
was empty, simply returning 0 out of its auto-release pool. And the Programmerβs IDE idly rendered the source file.
Then the Programmer said, Hello, π!
and there was a π. And the Programmer saw the π, that is was Unicode; and the Programmer delimited the string literal with @""
to divide it from Objective-Cβs keywords & functions for the compiler. The Programmer then called upon the function NSLog
with the string literal, so as to print the string to the console for all the π to see.
The Programmer ran βBuild & Runβ and saw that the π was printed and that it was good. And so the first program was written.