We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

MadLad

From Esolang
Jump to navigation Jump to search

MadLad is an esoteric programming language meant to be similar to C# but with a twist. MadLad is a very angry language and will yell at you for everything. Featuring screaming syntax and unhelpful error messages, this language hates everything and will express it with rage.

MadLad's syntax is meant to be angry. It is mad after all. Common C# syntax has been replaced by its angry counterpart.

Syntax and examples

MadLad vs C# syntax
C# var if else while for true false
MadLad WHATEVER BUTWHATFUCKINGIF WHATTHEFUCKELSE DOTHETHING GOAROUNDPLS FINE NO

A simple if statement

WHATEVER a = 3;
WHATEVER b = "ahhhh";
BUTWHATFUCKINGIF (a < 5)
{
    PrintString(b);
}
WHATTHEFUCKELSE
{
   PrintString("no");
}

Testing an even number

WHATEVER num = 10;
WHATEVER isEven = NO;
BUTWHATFUCKINGIF (num % 2 == 0)
{
   isEven = FINE;
}
WHATTHEFUCKELSE
{
  isEven = NO;
}

While vs for loop

WHATEVER x = 0;
DOTHETHING (x < 10)
{
 x = x + 1;
}
GOAROUNDPLS (int i = 0; i < 10; i = i + 1)
{
 x = x + i;
}

Boolean logic

WHATEVER isLang = FINE;
WHATEVER isGoodLang = NO;
BUTWHATFUCKINGIF (isLang || isGoodLang)
{
  PrintString("lang");
}

Mellobacon (talk) 10:23, 11 November 2021 (UTC)