[OT] Programming language WATs

bcs bcs at example.com
Sun Jan 22 12:24:12 PST 2012


On 01/20/2012 07:40 AM, Robert Clipsham wrote:
> Just came across this amusing 4 minute video:
>
> https://www.destroyallsoftware.com/talks/wat
>
> Anyone have any other WATs you can do in other languages? Bonus points
> for WATs you can do in D.
>

IIRC:

int i, j = getInt();
for (switch(j) {
   case 0: i = 5; break;
   case 1: i = 4; break;
   default: i = 42; } i < 77; i++)
     writefln("Wat!?");


More information about the Digitalmars-d mailing list