What is better than "if" and "else" statements in programming, NOTHING.
What is better than "if" and "else" statements in programming, NOTHING
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
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
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
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!
Based and switchpilled
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.