C
No string literals or comments:
Better(to,re);main(silent){and();}be(thought,a,fool){}
than(to,open,your,mouth);and(){}remove(all,doubt);
Split over two lines, but one would work fine as well.
When compiled using gcc on Linux (x86-64), this produces an executable which exits with success (exit code 0), the same as the true
Unix utility; this being how I choose to interpret the requirement of returning boolean true
in a non-scripting language.
Note: notwithstanding the abuse of the "implicit int" rule, the principal trick behind this program is that while a C program that falls off the end of main
without a return
statement will usually result in a non zero exit code, by calling another function we can set the EAX
register which is then used as the exit code of the program. This is of course totally undefined behaviour and utterly non portable.
1What is the max line length ? – kyle k – 2014-01-09T23:54:19.523
@kyle k, 90 characters should should suffice, mostly for estetic, readability reasons, also good aphorisms tend to be short :) – Eduard Florinescu – 2014-01-09T23:57:27.997
1Ruby -
!!"[ insert whatever aphorism you want here ]"
– Doorknob – 2014-01-10T02:54:09.8131@DoorknobofSnow That would be a valid answer but I doubt that would get much of the votes. – Eduard Florinescu – 2014-01-10T08:50:15.257
1Not sure that Shakespeare quotes qualify as aphorisms. – Blazemonger – 2014-01-24T18:11:55.613
@Blazemonger I think that quote qualifies as an aphorism – Eduard Florinescu – 2014-01-27T19:06:13.727