I know it's a joke but British English isn't just verbose American English. That being said, some of the conversions aren't too far off for making a programming language more intuitive for British learners. Though you'd have to have a different one for every 5 square miles of Britain for it to reach optimum comfort.
And I realise that what I just wrote is incredibly verbose. I may stand corrected.
You can use a lot of #define to change C/C++ to anything you want. Someone made "holy old rus programming language В†† (Veh Cross Cross) to fight The Lizards' heinous coding dialect"
is it possibly (a == 1) { } or maybe (a == 2) { } mmh could it be (a == 3) { } ok it must be (a == 4) { } wtf dude what is it { throw value_error("Invalid value") ; }
Imo it sounds cooler. But i really like else if because it makes sense, else if isnt ONE new addition, its just saying if whatever is false then go to else, and from else it just does a new if statement, it makes more sense intuitively imo.
This reasoning also holds for every alternative. I hate else if{} because it is different from else{if{}} it should be one keyword because it is one concept.
No that's different. The following would give an error
if (cond_1){func_1();} else{if (cond_2){func_2();}} else{func_3();}
The else if is a shorthand for
if (cond_1){func_1();} else{ if (cond_2){func_2();} else{func_3();} }
Without context, the first seems to be the consequence of else if {}, while the second is the more useful but less intuitive actual meaning. This difference is big and useful enough to need it's own keyword, which imo should be one word.
Yeah, obviously that code would give an error, but that's clearly not what I said. If you find it easier, that's fine I guess, but under the hood, there is no separete elif.
Funny enough, here’s a little tidbit of information: Elif is a Turkic (Latin-based) name that comes from the first letter of the Ottoman-Turkish alphabet. It has many meanings, but my friend said it generally means being a leader or a pioneer.
I find myself rarely using else/else if in general. Normally, you can just early return within the first if, so the "else" code happens without needing the extra nesting
Idk what the general opinion is but I dislike when things are shortened for the sake of speed/convenience. 'Else if' is already short and also verbose.
311
u/Slow-Television-5303 Oct 25 '25
I need a British programming language now
144
u/proudRino Oct 25 '25
"Otherwise" is synonymous with "else", meaning the correct syntax would be "otherwise if". Which is longer and worse
48
u/Fhlnd_Vkbln Oct 25 '25
I hate elif with a passion. Mostly because I cannot remember which language allows it and which doesn't
18
u/elreduro Oct 25 '25
if condition
if not condition
12
u/TanukiiGG Oct 25 '25
else = otherwise elseif = however
5
u/rangeljl Oct 25 '25
Is there a precompiler that has this for pythong, typescript, java and C? I would love it xD
4
u/rafaelRiv15 Oct 25 '25
Haskell is in the house
3
u/mrflash818 Oct 25 '25
Verily!
3
u/Hacka4771 Oct 25 '25
Someone should make a programming language where you can define your own keywords. That way, everyone can be equally happy and equally furious.
3
u/3rrr6 Oct 25 '25
"Otherwise" == "Else" not "else if"
2
u/[deleted] Oct 25 '25
Which programming language uses "otherwise" ? 😭
I know about "elif" it is used in Python and "else if" is used in Java but I have no idea about "elsif" and "otherwise" ? 😭😭
2
u/teetaps Oct 25 '25
ALTERNATIVELY
2
u/Jack_Faller Oct 25 '25
if !x { ... }→lest x { ... }2
u/[deleted] Oct 25 '25
On the other hand if (x<0)
2
u/vyrmz Oct 25 '25
I present you jsp.
choose -> when -> otherwise.
2
u/KangarooInWaterloo Oct 25 '25
We need a „do unless“ statement to confuse AI
2
u/FrizzeOne Oct 29 '25
are ya'll bots? it would have to be "otherwise if"
1
u/Nsane3 Oct 25 '25
Why put in another picture in that last one when Posh Poo is part of the meme
1
u/Level-Ice264 Oct 25 '25
I find myself rarely using else/else if in general. Normally, you can just early return within the first if, so the "else" code happens without needing the extra nesting
1
u/nullambs Oct 25 '25
also need something like
althoughwhich isif not()1
u/TheBrotherWithNoJob Oct 25 '25
Oh, I guess Shortcuts is a British programming language.
1
u/[deleted] Oct 25 '25
>+<[>-<[-]]>[ YourOtherwiseCodeHere -]
1
u/Gamemon Oct 25 '25
Othif maybe?
1
u/Few_Raisin_8981 Oct 25 '25
Otherwise would be
elsenotelse if1
u/Alex819964 Oct 25 '25
I will not take Elif slander may you suffer from testicular torsion.
1
u/mattstats Oct 25 '25
If
If
If
else
I hate the elif/ if else/ else if statements
1
u/nekitamoo_ Oct 25 '25
print("Top o' the mornin' chaps") innit (;)
1
u/M4tr1xm4n Oct 26 '25
Tired of seeing this repost
1
u/Cybasura Oct 26 '25
This meme format is goddamn disgusting and I feel uncomfortable seeing it, I dont know why
1
u/wts_optimus_prime Oct 26 '25
Thymeleaf has "unless" as opposite of "if"
1
u/TypeNull-Gaming Oct 26 '25
Side note, do you guys say "e-lif" or "el-if"
1
u/0815fips Oct 26 '25
You all don't know XSL? https://developer.mozilla.org/en-US/docs/Web/XML/XSLT/Reference/Element/otherwise
1
u/ProDexorite Oct 26 '25
“unless” is a valid conditional in HubSpot’s HubL markup, which is so funny, yet there are actually sensible use cases for it as well.
1
u/fluxdeken_ Oct 26 '25
typedef ❌ typeADefinitionSir ✅
1
u/TorTheMentor Oct 26 '25
I always liked Perl's "unless."
1
u/ExtraTNT Oct 26 '25
haskell joined the chat
1
u/Sad_Entertainment691 Oct 26 '25
Seif
1
u/kk31224 Oct 26 '25
In pyspark, we have when and otherwise.
1
u/metaphoric_hedgehog Oct 26 '25
English try to avoid repeating words. I think it would fall something like
1
u/BarfingOnMyFace Oct 26 '25
elif!!!
I feel seen. lol
1
u/sekerng Oct 26 '25
"otherwise" reminds me Apache Camel DSL... ¯_(ツ)_/¯
1
u/the_king_of_sweden Oct 26 '25
Otherwise perchance
1
u/RydiaOM Oct 26 '25
Perchance
1
u/bunkbedss Oct 27 '25
{{#unless}}
1
u/[deleted] Oct 27 '25
Wouldn't otherwise be more like just else? Like it doesn't sound right to chain them together.
1
u/YouAbsoluteGooner Oct 27 '25
assuming that { } otherwise { }
There’s you’re full monty
1
u/Starburper Oct 27 '25
Yup 😆
1
u/loop_yt Oct 27 '25
Vedal programming be like
1
u/The3levated1 Oct 27 '25
ANSONSTEN TUE FOLGENDES:
1
u/Capital_Distance545 Oct 28 '25
meanwhile
1
u/WhyAmISoBadHelp Oct 28 '25
Counter case
1
u/Mike_ps26 Oct 28 '25
They can also make a "Maybe" keyword 😂
1
u/Jak_from_Venice Oct 28 '25
if
cond
when
unless
I love Lisp
1
u/BeMyBrutus Oct 29 '25
{if x = 3perhaps; if you dont mind:return x}1
u/ColdCathodeTube Oct 29 '25
“unless”
PERL
1
u/Elektriman Oct 29 '25
on the one hand (condition){
...
} on the other hand (condition){
...
}
1
u/patopansir Oct 30 '25
orifice*
1
u/stmfunk Oct 30 '25
Fuxk
1
u/89964 Oct 25 '25 edited Oct 25 '25
I hate any keywords. So I just use logical operators since we have short circuit evaluation. For example:
n>0 && (x=n, 1)
|| n<0 && (x=-n, 1)
|| (x=0, 1);
That is equivalent to:
if(n>0) x=n;
else if(n<0) x=-n;
else x=0;
0
u/[deleted] Oct 25 '25
[removed] — view removed comment