What is better than "if" and "else" statements in programming, NOTHING

What is better than "if" and "else" statements in programming, NOTHING.

Attached: animeeee.jpg (512x512, 68K)

Polymorphism

Pattern matching

Bitwise manipulation of registers.

multiple nested loops with functions embedded

Having separate machines dedicated to each condition and choosing the desired machine after thinking about it for a second.

haskell chad spotted

More like rust chad

Attached: D8Up_FdUcAAxrC5.jpg (1000x975, 70K)

rustranny

Gofags cope harder

if and else EXPRESSIONS

Several specialized jump instructions that check for values in assorted registers and flags and that all have opcodes that look like the Czech language

switch

if-else expressions
Also this.

haskelloser

Code without branching.

pointer arithmetic

Attached: 1536524768764.png (160x240, 35K)

switch statements, the CIA what's you to think it's just a bunch of if else statements but no it's a lookup table.

It's hard to beat the amount of fun you can have with LOOP and FORMAT from Common Lisp.

a for loop

(defmacro when ...)

nested ternarys

goto

switch

do while

Nothing sexier than if else in Haskell
main = do
let var = 23
if var `rem` 2 == 0
then putStrLn "Number is Even"
else putStrLn "Number is Odd"

This motherfucking chad right here


Don’t let the government tell you otherwise switch statements are based

dispatch table

boolean expressions

Attached: 1536666208803.jpg (975x1444, 207K)

If statements considered harmful. My language doesn't even support them.

What about it.

x = cond ? cond2 ? cond3 ? cond4 ? a : b : c : d : e;

tfw you've never written a do or an if else and never will

Go is also for trannys

Switch

>Got a lot of condition
>if else chain it!

Attached: if plebs.png (828x801, 149K)

Based and switchpilled

Attached: 1536981735458.jpg (1280x720, 178K)

bool flag = int_var1 && my_func(some_arg1, some_arg2, some_arg3);
meh.
(cond ((first_cond)(first_body)) ((then_second_cond)(second_body)) ((t)(default_body)))
meh too. I'm sure i've fucked up the parens again.