There are some really awesome programming languages out there. List your favorites, and of course an example..
LOLCODE, http://lolcode.com/home
LOLCODE, http://lolcode.com/home
OH HAI
I CAN HAS STDIO?
(class declaration: Cabinet)
I HAS A VISIBLE food1 ITZ "Cheez" ALWAIZ
I HAS A INVISIBLE food2 ITZ "Burger" ALWAIZ
(end class declaration)
I HAS A foodbox ITZ A Cabinet
U SEEZ "Food1 in foodbox = ".food1 IN MAH foodbox
U SEEZ "Food2 in foodbox = ".food2 IN MAH foodbox
O NOES
BTW Second line causes an error because food2 is INVISIBLE.
U SEEZ "I has no Burger in foodbox!!!!1!!1"
GTFO
KTHX
KTHXBYE
I CAN HAS STDIO?
(class declaration: Cabinet)
I HAS A VISIBLE food1 ITZ "Cheez" ALWAIZ
I HAS A INVISIBLE food2 ITZ "Burger" ALWAIZ
(end class declaration)
I HAS A foodbox ITZ A Cabinet
U SEEZ "Food1 in foodbox = ".food1 IN MAH foodbox
U SEEZ "Food2 in foodbox = ".food2 IN MAH foodbox
O NOES
BTW Second line causes an error because food2 is INVISIBLE.
U SEEZ "I has no Burger in foodbox!!!!1!!1"
GTFO
KTHX
KTHXBYE









Comment