LoL Code
How do you guys think about lolcode?
Example 1:
Example 2:
So with this code fragment, we have an event block introduced with ON eventName, and terminated with the usual KTHXBYE. We have an effectively infinite loop, labelled “BED”. The only output is an occasional “Z!”.
Example 3:
GIMMEH wins out over TXT ME A for inputting a line from the user.
N is particularly evil choice for a keyword, I think, but it feels right as a conjunction, akin to a comma in many other languages. I'm not keen on adding too many punctuation marks beyond ”, !, and ?.
Example 1:
Code:
HAI CAN HAS STDIO? VISIBLE "HAI WORLD!" KTHXBYE
- HAI and KTHXBYE are the start and stop block delimiters.
- CAN HAS is a feature request, like require or include.
- VISIBLE is a print statement.
Example 2:
Code:
ON CATURDAY IM IN YR BED I IZ SLEEPIN!!10 VISIBLE "Z!" KTHX KTHXBYE
Example 3:
Code:
HAI CAN HAS STDIO? I HAS A VAR GIMMEH VAR VISIBLE "You said " N VAR N " !!" KTHXBYE
N is particularly evil choice for a keyword, I think, but it feels right as a conjunction, akin to a comma in many other languages. I'm not keen on adding too many punctuation marks beyond ”, !, and ?.