Re:“A damn stupid thing to do” – The origins of CPL, BCPL, a...
by Y_Y on Monday December 12, 2022 @05:52AM
(#33953289)
WHEREUPON x PURSUANT y CONTRARIWISE z
Re:“A damn stupid thing to do” – The origins of CPL, BCPL, a...
by matheusmoreira on Monday December 12, 2022 @01:34PM
(#33958323)
I remember saving this code from somewhere.
#include <stdio.h>
#define PREACH printf
#define SHOULD_GOD_WILL if
#define EACH_AND_EVERY_CREATURE_UNDER_GODS_LIGHT for
#define OTHERWISE else
#define RETRIBUTE return
#define ALONG_WITH &&
#define THUS }
#define LET {
int main() LET
EACH_AND_EVERY_CREATURE_UNDER_GODS_LIGHT (int i = 0; i < 100; i++) LET
SHOULD_GOD_WILL (i % 5 == 0 ALONG_WITH i % 3 == 0) LET
PREACH("Fizzbuzz!\n");
THUS OTHERWISE SHOULD_GOD_WILL (i % 5 == 0) LET
PREACH("Buzz!\n");
THUS OTHERWISE SHOULD_GOD_WILL (i % 3 == 0) LET
PREACH("Fizz!\n");
THUS OTHERWISE PREACH("%d\n", i);
THUS
RETRIBUTE 0;
THUS
Re:“A damn stupid thing to do” – The origins of CPL, BCPL, a...
by irrational on Monday December 12, 2022 @09:09AM
(#33954737)
Wherefore art thou utilizing contrarwise? Dost thy senses leave thee?
Re:“A damn stupid thing to do” – The origins of CPL, BCPL, a...
by Smaug123 on Monday December 12, 2022 @12:15PM
(#33957281)
twitch
"Utilize" first arose in 1807 if Merriam-Webster is to be believed, well past the period you're quoting; and "dost" should agree with the number of its noun "senses". ("dost" is second-person, but you need something third-person.) In this context I also don't really like the continuous present of "are you utilizing", but I can't put words to why. I believe "hast thou taken leave of thy senses" is actually recorded to be idiomatic.
By the way, ChatGPT suggests (where I've fixed its analogous error in the word "doth"):
> Pray tell, wherefore dost thou employ the term 'contrariwise'?
Re:“A damn stupid thing to do” – The origins of CPL, BCPL, a...
by jolmg on Monday December 12, 2022 @09:57AM
(#33955276)
Haskell uses `otherwise`. Example use:
greater x y
| x > y = x
| otherwise = y
In Haskell's case, this is a conditional syntax that's alternative to if-then-else, so `else` was already taken. `otherwise` is just a conventional constant for `True` that's chosen for readability.
> IF THEN OTHERWISE
Which avoids overloading OR and maintains better grammar.
But I suspect shorter words were preferable when space was a premium everywhere not least on the display itself.