Comment on 56,000 lines of DOOM, in a language I made upparentComments−kmoser1moI did this in 1989, as if C had been written by the folks who brought you COBOL: #include <stdio.h> #define OpenBrace { #define CloseBrace } #define OpenBracket [ #define CloseBracket ] #define OpenParenthesis ( #define CloseParenthesis ) #define NoReturnType void #define NoParameter NoReturnType #define MainFunction main #define Semicolon ; #define FunctionPrototype #define ActualFunction #define PointerTo(atype) atype* #define OutputToStdout(astring) printf(astring) #define IsEqualTo = FunctionPrototype NoReturnType MainFunction OpenParenthesis NoParameter CloseParenthesis Semicolon ActualFunction NoReturnType MainFunction OpenParenthesis NoParameter CloseParenthesis OpenBrace PointerTo(char) string IsEqualTo "Now is the time for all good men, etc.\n" Semicolon OutputToStdout(string) Semicolon CloseBrace−bitwize1moNeeds more DIVISIONs. Though I can imagine this being what would happen if the designers of PowerShell were responsible for C.−jrapdx31moHow right you are! I use PowerShell when I have to.Seems like PS was designed under the motto, "The choice: why make it simple when we can make it complicated?"
Comments
I did this in 1989, as if C had been written by the folks who brought you COBOL:
Needs more DIVISIONs. Though I can imagine this being what would happen if the designers of PowerShell were responsible for C.
How right you are! I use PowerShell when I have to.
Seems like PS was designed under the motto, "The choice: why make it simple when we can make it complicated?"