sonofnels.com

carbon neutral since 1975

Month: January 2010

Observation: C and Scripture

bool post () {

/* Unless you know something about C and/or the Bible, read this post at your own risk; */

printf(“In modern computer programming, two types of subroutines are commonly used — procedures and functions.  The difference between the two is that functions always return a value to the caller — just like a function in mathematics — and procedures never do.  Students of the C language quickly learn that C does not have procedures.  C only has functions.  We should require more research to find out whether the designers wanted to nudge the programmer towards always returning values from subroutines or give the programmer a better feel of what the compiled language looked like.  The latter is often the case in C, so we will make that our guess.”);

printf(“Regardless, C does allow the programmer to imitate a procedure call with a function that returns ”void.”  Those in our audience with Bible on the brain will instantly remember Isaiah 55:11, ”So shall my word be that goeth forth out of my mouth: it shall not return unto me void, but it shall accomplish that which I please, and it shall prosper in the thing whereto I sent it.”  This raises three questions in our minds:  %d. Is it possible that the C designers had this Scripture in mind when they wrote their specification?  %d. If a new C variant were created — call it Biblical C — would all functions be required to returned a value and not void?  %d. Why didn’t we think of this before?”, 1, 2, 3);

return true;

}

/* I guess that makes me a weirdo even more than using vi in Windows does. */

Quotation of the Day: C. S. Lewis

Your quotation of the day is a paradox from C. S. Lewis:  “It is the stupidest children who are the most childish and the stupidest grown-ups who are the most grown-up.”

Think about it…

© 2017 sonofnels.com

Theme by Anders NorenUp ↑